[Integrations](https://spiral.ai/integrations) › [Devin](https://spiral.ai/integrations/devin) › [Medicaid drug utilization and NADAC records](https://spiral.ai/integrations/devin/medicaid-drug-utilization-and-nadac-records)

# How to Use Medicaid drug utilization and NADAC records in Devin

Returns pages of SDUD utilization records or NADAC acquisition-cost records from a dataset year. Use it to build state comparisons, quarterly utilization reports, or weekly benchmark comparisons across drugs.

|  |  |
| --- | --- |
| Model | Medicaid drug utilization and NADAC records |
| 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 drug utilization and NADAC records in Devin

- Use Medicaid drug utilization and NADAC records to collect California's first-quarter 2025 SDUD data and add a prescription-count summary by NDC to this project's reporting script.
- Use Medicaid drug utilization and NADAC records to collect the NADAC publication for December 31, 2025, and build a table of the returned drug descriptions, acquisition-cost benchmarks, and effective dates.
- Use Medicaid drug utilization and NADAC records to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Medicaid drug utilization and NADAC records and tell me what changed since last week.
- Check Medicaid drug utilization and NADAC records and summarize what you find in three bullet points.

## How to set up Medicaid drug utilization and NADAC records in Devin

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

### Use Spiral's MCP server

1. **Add a custom MCP**: Open Customize › MCPs. Click + and choose New MCP. Fill in:

2. **Sign in to Spiral and approve**: In Customize › MCPs, open Spiral and choose Connect. Spiral opens: sign in, pick the organization and click Authorize. No API key.

3. **Check it**: On Spiral's configuration page, click Test tools. Devin lists Spiral's tools.

### Use the Spiral skill

1. **Send Devin 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 drug utilization and NADAC records**: 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/drug-utilization/records_list",
    "input": {
      "year": 1991,
      "dataset": "sdud"
    }
  }'
```

Then paste one of the prompts above: Devin finds Medicaid drug utilization and NADAC records on Spiral, shows the price and runs it.

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

## Medicaid drug utilization and NADAC records tools and prices

- [Medicaid open data: SDUD and NADAC · Records list](https://spiral.ai/tools/alexandria/data-medicaid-gov/drug-utilization/records_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| state |  | — | SDUD only: two-letter state code as published (AK..WY, DC, PR, and XX for the national total). Pattern: ^[A-Z]{2}$. |
| quarter | 1 to 4 | — | SDUD only: calendar quarter. |
| page_size | 1 to 8000 | — | Rows per page (default 8000, the datastore maximum). |
| as_of_date |  | — | NADAC only: weekly as_of_date (YYYY-MM-DD, Wednesdays). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| continuation |  | — | Opaque cursor from the previous page's meta.page.next_cursor. `dataset` and `year` must match the cursor; segment filters are taken from the cursor. |

## What can you do with Medicaid drug utilization and NADAC records in Devin?

Build a report that compares Medicaid prescription counts across states or NADAC benchmarks across weekly collections. A coding agent can add source checks and record verification to the project's data pipeline.

### Quarterly state drug reports

Check the SDUD publication, collect California's quarterly records, and recheck the rows cited in a report of prescription counts and reimbursement amounts.

### Weekly acquisition-cost comparisons

Check for a changed NADAC publication, collect the weekly records, and verify selected drug rows before comparing acquisition-cost benchmarks with the previous collection.

### Historical utilization revisions

Check whether an older SDUD dataset changed, collect the affected state-quarter again, and recheck records whose prescription counts differ from the earlier collection.

### Evidence checks before publication

Confirm the source publication, collect the SDUD or NADAC records supporting an analysis, and retrieve each cited row again before publishing the findings.

### State comparisons for one drug

Collect matching SDUD quarters for Texas and Florida, compare prescription counts for the same NDC, and verify the records behind the largest differences.

### Maintain a pharmacy research dataset

Use source status to identify changed SDUD or NADAC publications, then collect the corresponding records to refresh a research database.

## Overview

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

## Medicaid drug utilization and NADAC records in other agents

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

## More Devin guides

- [Medicaid drug utilization and NADAC record](https://spiral.ai/integrations/devin/medicaid-drug-utilization-and-nadac-record)
- [NCBI GEO platform details](https://spiral.ai/integrations/devin/ncbi-geo-platform-details)
- [Medicaid drug utilization and NADAC dataset status](https://spiral.ai/integrations/devin/medicaid-drug-utilization-and-nadac-dataset-status)
- [NCBI GEO sample details](https://spiral.ai/integrations/devin/ncbi-geo-sample-details)
- [Medicaid NADAC drug search](https://spiral.ai/integrations/devin/medicaid-nadac-drug-search)
- [NCBI GEO study details](https://spiral.ai/integrations/devin/ncbi-geo-study-details)

## Questions about Medicaid drug utilization and NADAC records in Devin

**Can Devin use Medicaid drug utilization and NADAC records?**

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

**How much does Medicaid drug utilization and NADAC records cost in Devin?**

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

**Do I need an Alexandria account to use Medicaid drug utilization and NADAC records in Devin?**

No. Spiral runs Medicaid drug utilization and NADAC records 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 drug utilization and NADAC records in Devin?**

About two minutes: add a custom MCP, then sign in to Spiral and approve, then check it.

**Does Devin wait while Medicaid drug utilization and NADAC records runs?**

Medicaid drug utilization and NADAC records runs in the background. Devin starts the run, checks on it and gives you the json when it's ready.

**What geography does this Medicaid data cover?**

CMS describes SDUD national totals as covering the 50 states and Washington, DC, with records aggregated by 11-digit NDC. NADAC is a national benchmark based on retail community pharmacy invoices across the United States.

**How fresh is NADAC?**

CMS updates NADAC weekly. Monthly generic updates use a three-month moving average introduced in December 2024, so a new weekly file does not mean every benchmark reflects only that week's purchases.

**When does CMS publish quarterly utilization data?**

The published SDUD schedule lists August for the first quarter, November for the second, February for the third, and May for the fourth. These publication dates lag the quarter being measured.

**Does public SDUD include every prescription count?**

CMS suppresses counts below 11 and applies secondary suppression to protect privacy. Direct identifiers are removed, so public SDUD supports aggregate drug-utilization analysis.

**Can previously published utilization figures change?**

Yes. CMS says late state submissions can miss one quarterly posting and appear in the next, so a previously collected state-quarter can later contain additional reported data.

