Spiral gives your agent every tool with one account. Browse the tools →

opencode · Health

How to Use CMS Part B drug payment limits in opencode

Returns a quarter’s CMS Medicare Part B drug payment limits by billing code, with associated NDC crosswalk details. Use it to look up a drug or package and check the billing unit behind its published limit.

Prompts to try with CMS Part B drug payment limits in opencode

Copy an example into opencode, or ask in your own words.

Use CMS Part B drug payment limits to fetch Keytruda for the fourth quarter of 2025 and add its billing code, dosage unit, and payment limit to our reimbursement table.

CMS Part B drug payment limitsopencode
Try asking
  • Use CMS Part B drug payment limits to look up NDC 00006-3026-02 for the fourth quarter of 2025 and add the returned crosswalk details to our drug reference fixture.

  • Use CMS Part B drug payment limits to fetch trastuzumab entries for the fourth quarter of 2025 and compare their codes, dosage units, and limits with the rows in our reference CSV.

  • Use CMS Part B drug payment limits to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from CMS Part B drug payment limits and tell me what changed since last week.

How to set up CMS Part B drug payment limits in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run CMS Part B drug payment limits

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "cms-gov/asp-pricing/payment_limits",
        "input": {
          "ndc": "<ndc>"
        }
      }'

Then paste one of the prompts above: opencode finds CMS Part B drug payment limits on Spiral, shows the price and runs it.

CMS Part B drug payment limits providers and prices

Spiral runs CMS Part B drug payment limits through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10010

Most codes to return.

Offset0 to 50000

Codes to skip; pass next_offset for the next page.

Include ndcson or off

List each code's NDCs from the crosswalk. Defaults to true when drug, hcpcs or ndc is given, false otherwise; ndc_count is always given. With ndc, only the matching NDCs are listed.

Every API field of CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits · Payment limits is on its tool page: open its card above.

What can you do with CMS Part B drug payment limits in opencode?

Build a reimbursement comparison table that keeps CMS payment limits, billing codes, and dosage units together. A coding agent can add quarter comparisons and flag changes against the project’s saved reference data.

Review an oncology drug budget

Compare published limits for Keytruda and Opdivo across quarters, then calculate allowance changes for fixed quantities using each code’s billing unit.

Audit a reimbursement reference table

Compare an organization’s drug allowance table with CMS limits for the applicable quarters and flag differences for review.

Compare biosimilar payment trends

Compare published limits for trastuzumab products, keeping each billing code and dosage unit visible so the comparison uses equivalent quantities.

Check revisions to earlier quarters

Recheck published limits against saved results and identify historical changes that warrant a reimbursement review.

Prepare a quarterly drug payment briefing

Summarize changes in selected drug codes, including the largest percentage movements and the effective quarters.

Check a drug package’s billing code

Look up a Keytruda NDC in the CMS crosswalk and review its associated HCPCS code and billing-unit details.

Questions about CMS Part B drug payment limits in opencode

Can opencode use CMS Part B drug payment limits?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CMS Part B drug payment limits like any built-in tool.

How much does CMS Part B drug payment limits cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use CMS Part B drug payment limits in opencode?

No. Spiral runs CMS Part B drug payment limits on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up CMS Part B drug payment limits in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while CMS Part B drug payment limits runs?

CMS Part B drug payment limits runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How often does CMS update the data?

CMS publishes payment limits quarterly. The underlying ASP data have a two-quarter lag, so a quarter’s effective limit reflects an earlier sales period.

Does CMS list every Part B drug?

CMS may omit payment limits or crosswalk entries for manufacturer-reported drugs. These files therefore do not provide a complete inventory of every Part B drug.

Does a listed drug have Medicare coverage?

Presence or absence in the payment limit files does not establish Medicare coverage. A published billing code and allowance are not a coverage determination.

Is the payment limit for a whole vial or package?

The limit applies to one HCPCS billing unit, as defined by the code’s dosage. Use that unit when comparing products or calculating an allowance for a stated quantity.

Can a previous quarter’s payment limit change?

Yes. CMS may issue restatements for up to four previous quarters, so historical limits can change after their initial publication.

Get started

Start using CMS Part B drug payment limits in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options