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

Codex · Health

How to Use CMS Open Payments research payment records in Codex

Find individual reported research payments with amounts, dates, recipients, sponsors, and available study details. Use these records to examine the transactions behind a hospital's research funding.

Prompts to try with CMS Open Payments research payment records in Codex

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

Use CMS Open Payments research payment records to fetch payments for MD Anderson and add a table to this project's report showing recipient, sponsor, amount, date, and available study information.

CMS Open Payments research payment recordsCodex
Try asking
  • Use CMS Open Payments research payment records to find ARTEMIDE-Lung04 payments and create a report in this project showing the reported institutions, amounts, and study details.

  • Use CMS Open Payments research payment records to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from CMS Open Payments research payment records and tell me what changed since last week.

  • Check CMS Open Payments research payment records and summarize what you find in three bullet points.

How to set up CMS Open Payments research payment records in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 Open Payments research payment records

    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": "openpaymentsdata-cms-gov/research-payments/search",
        "input": {
          "site": "<site>"
        }
      }'

Then paste one of the prompts above: Codex finds CMS Open Payments research payment records on Spiral, shows the price and runs it.

CMS Open Payments research payment records providers and prices

Spiral runs CMS Open Payments research payment records through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
CMS Open Payments research payments · Search
openpaymentsdata-cms-gov/research-payments/search

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10025

Most results to return.

Offset0 to 100000

Results to skip; pass next_offset from the previous page.

Max amount0 to 10000000000

Largest payment amount in USD, inclusive.

Min amount0 to 10000000000

Smallest payment amount in USD, inclusive.

Program year2013 to 2100

Program year, the calendar year the payments were made. Defaults to the latest year CMS has published (2025, published June 30, 2026). CMS keeps the latest seven years online, 2019 to 2025 now; each is its own dataset, so a call covers one year.

Every API field of CMS Open Payments research payments · Search is on its tool page: open its card above.

What can you do with CMS Open Payments research payment records in Codex?

Build a hospital research funding report with CMS disclosures as its evidence. A coding agent can turn returned payments, rankings, or annual totals into tables and charts in your project.

Prepare a teaching hospital funding brief

Build an MD Anderson brief using annual research totals, sponsor rankings, and individual payments that explain the largest funding relationships.

Compare teaching hospitals

Compare MD Anderson and Memorial Sloan Kettering using annual totals, ranked funding sources, and payment records. Keep the comparison limited to research disclosures reported to CMS.

Assess sponsor concentration

Identify the sponsors that dominate a hospital's reported research funding, inspect their underlying payments, and place the concentration alongside the hospital's annual totals.

Explain a hospital's annual funding change

Start with a teaching hospital's annual totals, then use rankings and individual records to investigate the reported funding behind a change. Account for publication delays when interpreting recent years.

Review a new CMS publication

Compare a saved hospital funding report with the next CMS publication. Check changes in annual totals, sponsor rankings, and individual payment records.

Build a national research funding overview

Use national annual totals to establish the trend, rankings to identify major funding concentrations, and individual payment records to illustrate the reported transactions.

Questions about CMS Open Payments research payment records in Codex

Can Codex use CMS Open Payments research payment records?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run CMS Open Payments research payment records like any built-in tool.

How much does CMS Open Payments research payment records cost in Codex?

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

Do I need an Alexandria account to use CMS Open Payments research payment records in Codex?

No. Spiral runs CMS Open Payments research payment 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 CMS Open Payments research payment records in Codex?

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

Does Codex wait while CMS Open Payments research payment records runs?

CMS Open Payments research payment records runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

How current is CMS Open Payments research data?

CMS publishes the previous program year's full datasets by June 30 and refreshes them in January. Research funding therefore appears on a publication cycle rather than as payments happen.

How far back does the searchable data go?

CMS currently provides detailed searchable data for 2019 through 2025. Records for 2013 through 2018 are available through its archived datasets.

Does the public data include every recent research payment?

Eligible research payment records can remain unpublished for up to four years. An absent payment is not proof that no funding occurred.

What qualifies as a research payment?

CMS defines research payments as transfers connected with a formal research agreement or research protocol. Its general payments category covers transfers outside those arrangements.

Who supplies the payment information?

Reporting entities track their financial transactions annually and submit them to CMS. The records identify the reporting manufacturer or group purchasing organization and the recipient.

Get started

Start using CMS Open Payments research payment records in Codex

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

Paste this into Codex:

Set up Codex

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