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

Perplexity · Health

How to Use CMS drug spending search in Perplexity

Returns spending and utilization results for named drugs across Medicare Part D, Part B, or Medicaid. Use it for a question about Eliquis or Keytruda without collecting an entire dataset.

Prompts to try with CMS drug spending search in Perplexity

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

Use CMS drug spending search to compare Eliquis and Xarelto in Medicare Part D for 2024, showing total spending, prescription fills, and beneficiary counts where available.

CMS drug spending searchPerplexity
Try asking
  • Use CMS drug spending search to look this up and give me the result as a table.

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

  • Check CMS drug spending search and summarize what you find in three bullet points.

  • Pull the newest data from CMS drug spending search and give me the result as a table.

How to set up CMS drug spending search in Perplexity

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

Use the Perplexity connector

  1. Add a remote connector

    In Perplexity, open Plugins in the sidebar (or Customize › Connectors if you don't see Plugins yet). Choose Add custom › Add MCP connector, then Remote. Name it Spiral and paste this MCP server URL:

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Select the Spiral card on the Plugins page to start sign-in. Spiral opens: sign in, pick the organization and click Authorize. No API key.

Use the Spiral skill

  1. Send Perplexity 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 drug spending 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-cms-gov/drug-spending/search",
        "input": {
          "drug": "<drug>"
        }
      }'

Then paste one of the prompts above: Perplexity finds CMS drug spending search on Spiral, shows the price and runs it.

CMS drug spending search providers and prices

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

AlexandriaHealth
CMS data.cms.gov · Search
data-cms-gov/drug-spending/search

Settings you can ask for

Ask Perplexity for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 5010

Drugs returned per program, largest latest-year spending first.

Programpart_d, part_b, or medicaid

Search one program; omit to search all three. part_d: Medicare Part D, prescriptions patients take themselves. part_b: Medicare Part B, drugs given in doctors' offices and hospital outpatient departments, by HCPCS code. medicaid: Medicaid outpatient prescriptions.

Every API field of CMS data.cms.gov · Search is on its tool page: open its card above.

What can you do with CMS drug spending search in Perplexity?

Create a sourced comparison of CMS spending and prescription fills for drugs such as Eliquis and Ozempic. A chat app can explain the reported measures, including why Part D totals exclude rebates and Medicaid has no beneficiary counts.

Annual drug spending report

Identify the annual datasets and publication versions, collect the records, rank spending, and investigate named drugs. Recheck the exact records supporting the report's main findings.

Diabetes drug utilization study

Compare reported spending and prescription fills for drugs such as Ozempic and Jardiance across available years. Establish coverage and publication versions first, then verify the individual records behind notable changes.

Medicare Part B oncology spending review

Find the relevant Part B publication, rank spending, and examine Keytruda alongside other reported drugs. Collect the underlying records and verify selected results before preparing a fee-for-service spending brief.

Prescription volume and spending comparison

Use a consistent annual publication to find high-spending drugs and compare their spending changes with prescription-fill changes. Retrieve and verify the records needed to distinguish changes in reported utilization from changes in average spending.

Drug spending fact-check

Check a published claim about Eliquis spending against CMS results, then retrieve the exact drug and year record supporting the comparison. Explain that Part D totals exclude rebates.

Select drugs for a policy brief

Find the highest-spending drugs or largest changes in average spending per unit, then examine named results and their underlying records. Use the findings to choose which drugs warrant a closer explanation.

Questions about CMS drug spending search in Perplexity

Can Perplexity use CMS drug spending search?

Yes. Add Spiral to Perplexity as an MCP server, and Perplexity can find and run CMS drug spending search like any built-in tool.

How much does CMS drug spending search cost in Perplexity?

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

Do I need an Alexandria account to use CMS drug spending search in Perplexity?

No. Spiral runs CMS drug spending 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 CMS drug spending search in Perplexity?

About two minutes: add a remote connector, then sign in to Spiral and approve.

Does Perplexity wait while CMS drug spending search runs?

CMS drug spending search runs in the background. Perplexity starts the run, checks on it and gives you the json when it's ready.

Does CMS drug spending cover the entire US drug market?

No. Annual Part D data summarizes final-action claims for Part D enrollees, Part B spending excludes Medicare Advantage beneficiaries, and Medicaid spending covers outpatient drugs paid for by state Medicaid agencies.

How often does CMS update annual drug spending data?

CMS typically updates the annual Medicare Part D spending dataset once every 12 months. That publication schedule describes the annual dataset, rather than current prescribing activity.

Do the spending totals include rebates?

Part D totals exclude manufacturer rebates and other price concessions. Medicaid totals likewise are not reduced by rebates paid to states, so these figures do not establish spending after rebates.

Can I compare spending per beneficiary across Medicare and Medicaid?

The Medicaid spending dataset does not provide individual beneficiary counts. CMS explicitly says that per-beneficiary calculations are therefore not possible for that dataset.

Does a Part D drug total describe one strength or dosage form?

Annual Part D summaries combine strengths, dosage forms, and routes of administration under brand and generic names. A drug-level result therefore does not isolate a particular tablet strength or injection formulation.

Get started

Start using CMS drug spending search in Perplexity

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

Paste this into Perplexity:

Set up Perplexity

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