How to Use CMS Open Payments research payment rankings in opencode
Rank reported research funding by sponsor, site, investigator, study, or product. Use the rankings to identify where funding is concentrated before examining individual payments.
Prompts to try with CMS Open Payments research payment rankings in opencode
Copy an example into opencode, or ask in your own words.
Use CMS Open Payments research payment rankings to identify MD Anderson's largest research sponsors and build a chart in this project from the returned results.
Use CMS Open Payments research payment rankings 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 rankings and tell me what changed since last week.
Check CMS Open Payments research payment rankings and summarize what you find in three bullet points.
Pull the newest data from CMS Open Payments research payment rankings and give me the result as a table.
How to set up CMS Open Payments research payment rankings in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run CMS Open Payments research payment rankings
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/top", "input": { "group_by": "manufacturer" } }'
Then paste one of the prompts above: opencode finds CMS Open Payments research payment rankings on Spiral, shows the price and runs it.
CMS Open Payments research payment rankings providers and prices
Spiral runs CMS Open Payments research payment rankings through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Group by | manufacturer, recipient, investigator, study, or product | What to total by: the paying | |
| Limit | 1 to 100 | 25 | Most results to return. |
| Offset | 0 to 1000 | 0 | Results to skip; pass |
| Max amount | 0 to 10000000000 | Largest payment amount in USD, inclusive. | |
| Min amount | 0 to 10000000000 | Smallest payment amount in USD, inclusive. | |
| Program year | 2013 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 · Top is on its tool page: open its card above.
What can you do with CMS Open Payments research payment rankings in opencode?
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.
More on CMS Open Payments research payment rankings and opencode
Overview
CMS Open Payments research payment rankings in other agents
Questions about CMS Open Payments research payment rankings in opencode
Can opencode use CMS Open Payments research payment rankings?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CMS Open Payments research payment rankings like any built-in tool.
How much does CMS Open Payments research payment rankings cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use CMS Open Payments research payment rankings in opencode?
No. Spiral runs CMS Open Payments research payment rankings 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 rankings in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while CMS Open Payments research payment rankings runs?
CMS Open Payments research payment rankings runs in the background. opencode 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.
Start using CMS Open Payments research payment rankings in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


