[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [CMS Medicare negotiated drug prices](https://spiral.ai/integrations/windsurf/cms-medicare-negotiated-drug-prices)

# How to Use CMS Medicare negotiated drug prices in Windsurf

Returns CMS maximum fair prices by effective period, drug selection status, and NDC-level unit amounts. Use it to compare published periods for Eliquis or check which drugs CMS selected for 2028.

|  |  |
| --- | --- |
| Model | CMS Medicare negotiated drug prices |
| 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 CMS Medicare negotiated drug prices in Windsurf

- Use CMS Medicare negotiated drug prices to fetch Eliquis and add a table to this project's drug detail page showing each published 30-day supply amount and its effective period.
- Use CMS Medicare negotiated drug prices to retrieve the drugs selected for 2028 and generate a reference page in this project with selection status and any returned HCPCS codes.
- Use CMS Medicare negotiated drug prices to look up Wegovy and add its returned NDC codes and unit amounts to this project's drug reference data.
- Use CMS Medicare negotiated drug prices to retrieve Jardiance and Farxiga, then build a comparison in this project using only 30-day equivalent supply amounts from matching effective periods.
- Use CMS Medicare negotiated drug prices to retrieve the 2026 selection list and create a report in this project showing any returned deselection information.

## How to set up CMS Medicare negotiated drug prices in Windsurf

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

### Use Spiral's MCP server

1. **Add the server**: Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: `~/.config/devin/mcp_config.json` on macOS and Linux, `%APPDATA%\devin\mcp_config.json` on Windows. Add this:

```json
{
  "mcpServers": {
    "spiral": {
      "url": "https://api.spiral.ai/mcp"
    }
  }
}
```

2. **Sign in**: Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
devin mcp list
```

### Use the Spiral skill

1. **Send Windsurf 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 CMS Medicare negotiated drug prices**: 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": "cms-gov/negotiated-prices/search",
    "input": {
      "ndc": "<ndc>"
    }
  }'
```

Then paste one of the prompts above: Windsurf finds CMS Medicare negotiated drug prices on Spiral, shows the price and runs it.

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

## CMS Medicare negotiated drug prices tools and prices

- [CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits · Search](https://spiral.ai/tools/alexandria/cms-gov/negotiated-prices/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| ndc |  | — | An NDC-11 as 11 digits (`00169413013`) or hyphenated 5-4-2 (`00169-4130-13`), a hyphenated 10-digit NDC (`0169-4130-13`, 4-4-2, 5-3-2 or 5-4-1), or an NDC-9 product code (`00169-4130`, `001694130`). A bare 10-digit NDC is ambiguous and rejected. Matches the NDC-11, CMS's cross-referenced NDC-11 or the NDC-9. |
| drug |  | — | Brand name or active ingredient, matched case-insensitively anywhere in the selected drug's name (which lists its brands) or active ingredient: `eliquis`, `Wegovy`, `semaglutide`, `insulin aspart`. |
| ipay | 2026 to 2100 | — | Initial price applicability year, the first year a drug's negotiated price applies: 2026 (10 drugs), 2027 (15), 2028 (15, selected January 2026). |
| limit | 1 to 100 | 50 | Most drugs to return; `total_count` counts every match. |
| include_ndcs |  | — | List each NDC-11 with its per-unit prices. Defaults to true when `drug` or `ndc` is given, false otherwise, so a list of selected drugs stays compact; `ndc_count` is always given. With `ndc`, only the matching NDCs are listed. |

## What can you do with CMS Medicare negotiated drug prices in Windsurf?

Build a drug reference page that shows CMS negotiated amounts beside their effective periods and selection status. A coding agent can map returned NDC-level unit amounts into the project's drug catalog and add comparisons between published periods.

### Compare effective periods

Compare Eliquis's published 30-day supply amounts across effective periods, keeping the applicable dates beside each amount.

### Prepare a negotiation-cycle brief

Summarize the drugs selected for 2028, their current selection status, and any published negotiated amounts for a policy research brief.

### Review pharmacy product codes

Match a pharmacy's public product catalog against the returned NDC codes and attach the relevant negotiated unit amounts and effective periods.

### Monitor deselections

Compare successive results for previously selected drugs and flag returned deselection information for a reimbursement analyst to review.

### Check a published article

Verify an article's statements about Eliquis, Jardiance, or Wegovy against CMS's published periods, selection status, and 30-day supply amounts.

### Identify selected drugs with billing codes

Review the 2028 selection list for returned Part B HCPCS codes and prepare a code reference for a provider's reimbursement research.

### Maintain a drug reference application

Populate drug reference pages with CMS selection status, published negotiated periods, and NDC-level unit amounts.

## Overview

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

## CMS Medicare negotiated drug prices in other agents

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

## More Windsurf guides

- [CDC cancer incidence and death statistics](https://spiral.ai/integrations/windsurf/cdc-cancer-incidence-and-death-statistics)
- [CMS Open Payments annual research payment totals](https://spiral.ai/integrations/windsurf/cms-open-payments-annual-research-payment-totals)
- [CDC PLACES local health estimates](https://spiral.ai/integrations/windsurf/cdc-places-local-health-estimates)
- [CMS Open Payments research payment rankings](https://spiral.ai/integrations/windsurf/cms-open-payments-research-payment-rankings)
- [BDPM medicine search](https://spiral.ai/integrations/windsurf/bdpm-medicine-search)
- [CMS Open Payments research payment records](https://spiral.ai/integrations/windsurf/cms-open-payments-research-payment-records)

## Questions about CMS Medicare negotiated drug prices in Windsurf

**Can Windsurf use CMS Medicare negotiated drug prices?**

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run CMS Medicare negotiated drug prices like any built-in tool.

**How much does CMS Medicare negotiated drug prices cost in Windsurf?**

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

**Do I need an Alexandria account to use CMS Medicare negotiated drug prices in Windsurf?**

No. Spiral runs CMS Medicare negotiated drug prices 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 Medicare negotiated drug prices in Windsurf?**

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

**Does Windsurf wait while CMS Medicare negotiated drug prices runs?**

CMS Medicare negotiated drug prices runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

**Does CMS publish negotiated amounts for every prescription drug?**

No. The program selects certain high-expenditure, single-source drugs without generic or biosimilar competition. A drug missing from the selected-drug data may fall outside that scope.

**Which negotiation years does the data cover?**

The published scope includes 10 drugs initially applicable in 2026, 15 in 2027, and 15 selected for 2028. The first two cycles cover Part D drugs; the 2028 cycle includes Part B and/or Part D drugs.

**How often does CMS revise the source file?**

CMS updates it at least annually after a drug's first applicability year for inflation adjustments. Additional revisions account for NDC-11 additions, codes that no longer qualify, and drug deselections.

**Are the published amounts per tablet, package, or month?**

CMS publishes a 30-day equivalent supply amount, an NDC-9 per-unit amount, and an NDC-11 per-package amount. The endpoint documents 30-day supply amounts and NDC-level unit amounts, so comparisons need to use the same basis.

**Does selection for 2028 mean a negotiated amount is already published?**

Selection alone does not establish that an agreed amount has been published. CMS's guidance sets November 30, 2026, as the publication deadline for agreed 2028 amounts, with applicability beginning January 1, 2028.

