[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Medicaid NADAC drug search](https://spiral.ai/integrations/grok/medicaid-nadac-drug-search)

# How to Use Medicaid NADAC drug search in Grok

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.

|  |  |
| --- | --- |
| Model | Medicaid NADAC drug search |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Medicaid NADAC drug search in Grok

- Use Medicaid NADAC drug search to find the latest available benchmarks for Eliquis 5 mg tablets. Show matching drug codes, descriptions, and pricing units.
- Use Medicaid NADAC drug search to compare the returned benchmarks for atorvastatin 10 mg tablets. Keep each drug code and pricing unit beside its amount.
- Use Medicaid NADAC drug search to find metformin 500 mg tablets. Group the matches by their returned descriptions and show the acquisition-cost benchmarks and units.
- Use Medicaid NADAC drug search to look this up and give me the result as a table.
- 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

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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.

```bash
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.

```bash
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 finds Medicaid NADAC drug search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok

## Medicaid NADAC drug search tools and prices

- [Medicaid open data: SDUD and NADAC · Search](https://spiral.ai/tools/alexandria/data-medicaid-gov/prices/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| ndc |  | — | One NDC: 11 digits (`00003089421`) or hyphenated 5-4-2, 4-4-2, 5-3-2 or 5-4-1 (`0003-0894-21`). A bare 10-digit NDC is ambiguous and rejected. Pattern: ^[0-9]+(-[0-9]+-[0-9]+)?$. |
| limit | 1 to 100 | 25 | Results per page. |
| query |  | — | Drug name, optionally with strength and form, matched word by word against the NADAC description: `eliquis`, `eliquis 5 mg`, `atorvastatin 10mg tablet`. A strength matches as written after a space, so `10 mg` does not match `110 MG`. |
| offset | 0 to 1000 | 0 | `next_offset` from the previous page; repeat the same input with it. |
| effective_to |  | — | List rates that took effect on or before this date (YYYY-MM-DD) instead of reading the newest file. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| effective_from |  | — | List rates that took effect on or after this date (YYYY-MM-DD) instead of reading the newest file. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

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

Get a sourced comparison of NADAC benchmarks for a named drug or a timeline for one package. A chat app can explain the returned acquisition-cost figures and calculate changes while keeping each product's strength and pricing unit visible.

### 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## Medicaid NADAC drug search in other agents

- [Amp](https://spiral.ai/integrations/amp/medicaid-nadac-drug-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/medicaid-nadac-drug-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/medicaid-nadac-drug-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/medicaid-nadac-drug-search)
- [Cline](https://spiral.ai/integrations/cline/medicaid-nadac-drug-search)
- [Codex](https://spiral.ai/integrations/codex/medicaid-nadac-drug-search)
- [Cursor](https://spiral.ai/integrations/cursor/medicaid-nadac-drug-search)
- [Devin](https://spiral.ai/integrations/devin/medicaid-nadac-drug-search)
- [dots](https://spiral.ai/integrations/dots/medicaid-nadac-drug-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/medicaid-nadac-drug-search)
- [Gemini](https://spiral.ai/integrations/gemini/medicaid-nadac-drug-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/medicaid-nadac-drug-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/medicaid-nadac-drug-search)
- [goose](https://spiral.ai/integrations/goose/medicaid-nadac-drug-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/medicaid-nadac-drug-search)
- [Hermes](https://spiral.ai/integrations/hermes/medicaid-nadac-drug-search)
- [Instinct](https://spiral.ai/integrations/instinct/medicaid-nadac-drug-search)
- [Manus](https://spiral.ai/integrations/manus/medicaid-nadac-drug-search)
- [Muse](https://spiral.ai/integrations/muse/medicaid-nadac-drug-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/medicaid-nadac-drug-search)
- [n8n](https://spiral.ai/integrations/n8n/medicaid-nadac-drug-search)
- [Notion](https://spiral.ai/integrations/notion/medicaid-nadac-drug-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/medicaid-nadac-drug-search)
- [opencode](https://spiral.ai/integrations/opencode/medicaid-nadac-drug-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/medicaid-nadac-drug-search)
- [Raycast](https://spiral.ai/integrations/raycast/medicaid-nadac-drug-search)
- [VS Code](https://spiral.ai/integrations/vscode/medicaid-nadac-drug-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/medicaid-nadac-drug-search)
- [Zapier](https://spiral.ai/integrations/zapier/medicaid-nadac-drug-search)

## More Grok guides

- [Medicaid NADAC drug cost history](https://spiral.ai/integrations/grok/medicaid-nadac-drug-cost-history)
- [Medicaid drug utilization and NADAC dataset status](https://spiral.ai/integrations/grok/medicaid-drug-utilization-and-nadac-dataset-status)
- [ISRCTN study details](https://spiral.ai/integrations/grok/isrctn-study-details)
- [Medicaid drug utilization and NADAC record](https://spiral.ai/integrations/grok/medicaid-drug-utilization-and-nadac-record)
- [ISRCTN clinical trial search](https://spiral.ai/integrations/grok/isrctn-clinical-trial-search)
- [Medicaid drug utilization and NADAC records](https://spiral.ai/integrations/grok/medicaid-drug-utilization-and-nadac-records)

## Questions about Medicaid NADAC drug search in Grok

**Can Grok use Medicaid NADAC drug search?**

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

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

$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 plan is separate.

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

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?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Medicaid NADAC drug search runs?**

Medicaid NADAC drug search runs in the background. Grok 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.

