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

Grok Build · Health

How to Use Medicaid NADAC drug search in Grok Build

Finds NADAC acquisition-cost rates by drug name or NDC in the newest weekly file, or rates effective within a date range. Use it to identify matching products and compare their per-unit benchmarks before investigating one NDC's history.

Prompts to try with Medicaid NADAC drug search in Grok Build

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

Use Medicaid NADAC drug search to find Eliquis 5 mg tablets and add a table of matching NDCs, descriptions, acquisition-cost benchmarks, and pricing units to this project's research page.

Medicaid NADAC drug searchGrok Build
Try asking
  • Use Medicaid NADAC drug search to find atorvastatin 10 mg tablets and generate a CSV of matching NDCs, descriptions, benchmarks, and pricing units in the project.

  • Use Medicaid NADAC drug search to look up metformin 500 mg tablets and populate our drug lookup component with the returned product descriptions, NDCs, benchmarks, and units.

  • Use Medicaid NADAC drug search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Medicaid NADAC drug search and tell me what changed since last week.

How to set up Medicaid NADAC drug search in Grok Build

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

Use Spiral's MCP server

  1. Add the server

    Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

    grok mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it
    grok mcp doctor spiral

Use the Spiral skill

  1. Send Grok Build 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 Medicaid NADAC drug search

    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": "data-medicaid-gov/prices/search",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Grok Build finds Medicaid NADAC drug search on Spiral, shows the price and runs it.

Medicaid NADAC drug search providers and prices

Spiral runs Medicaid NADAC drug search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
Medicaid open data: SDUD and NADAC · Search
data-medicaid-gov/prices/search

Settings you can ask for

Ask Grok Build for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10025

Results per page.

Offset0 to 10000

next_offset from the previous page; repeat the same input with it.

Every API field of Medicaid open data: SDUD and NADAC · Search is on its tool page: open its card above.

What can you do with Medicaid NADAC drug search in Grok Build?

Build a drug-cost table or historical chart using CMS NADAC benchmarks keyed by NDC. Your coding agent can match products in project files, preserve pricing units, and calculate changes for the selected drug packages.

Build a drug acquisition-cost brief

Find matching Eliquis 5 mg products with Medicaid NADAC drug search, then use Medicaid NADAC drug cost history to explain how a selected NDC's benchmark changed over time.

Review supplier invoice costs

Use Medicaid NADAC drug search to identify the exact product and unit on a business invoice. Use Medicaid NADAC drug cost history to compare the invoice with the benchmark for the relevant period.

Prepare purchasing budget scenarios

Use Medicaid NADAC drug search for current benchmarks on a purchasing list. Use Medicaid NADAC drug cost history to calculate observed changes and build clearly labeled budget scenarios.

Support drug-cost reporting

Check product names, strengths, and dosage forms with Medicaid NADAC drug search. Use Medicaid NADAC drug cost history to document the timing and size of benchmark changes for an article.

Audit historical benchmark assumptions

Resolve products with Medicaid NADAC drug search, then use Medicaid NADAC drug cost history to check whether a business analysis used the appropriate NDC and historical rate.

Monitor a public drug watchlist

Check selected drug benchmarks with Medicaid NADAC drug search each week. Use Medicaid NADAC drug cost history to put detected changes in context and calculate changes from earlier periods.

Questions about Medicaid NADAC drug search in Grok Build

Can Grok Build use Medicaid NADAC drug search?

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Medicaid NADAC drug search like any built-in tool.

How much does Medicaid NADAC drug search cost in Grok Build?

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

Do I need an Alexandria account to use Medicaid NADAC drug search in Grok Build?

No. Spiral runs Medicaid NADAC drug search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Medicaid NADAC drug search in Grok Build?

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

Does Grok Build wait while Medicaid NADAC drug search runs?

Medicaid NADAC drug search runs in the background. Grok Build starts the run, checks on it and gives you the json when it's ready.

What does NADAC measure?

NADAC measures a national acquisition-cost benchmark derived from retail community pharmacy invoices across the United States. Off-invoice discounts, rebates, and price concessions are excluded.

How often does CMS update NADAC?

CMS posts weekly updates reflecting changes since the monthly file. A weekly publication schedule does not mean every drug receives a different rate each week.

Does NADAC cover every outpatient drug?

No. CMS explicitly states that some covered outpatient drug NDCs have no NADAC rate.

Can NADAC show acquisition costs for a particular state?

NADAC is calculated as one national average. Regional price differences are not incorporated into the benchmark.

Why can generic-drug NADAC changes look smoothed?

CMS currently uses a three-month moving average for monthly generic-drug NADAC updates. That calculation combines monthly observations rather than representing a single month's average alone.

Get started

Start using Medicaid NADAC drug search in Grok Build

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

Paste this into Grok Build:

Set up Grok Build

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