[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [CMS Open Payments research payment rankings](https://spiral.ai/integrations/opencode/cms-open-payments-research-payment-rankings)

# 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.

|  |  |
| --- | --- |
| Model | CMS Open Payments research payment rankings |
| 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 Open Payments research payment rankings in opencode

- 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

1. **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.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Open Payments research payment rankings**: 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": "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.

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

## CMS Open Payments research payment rankings tools and prices

- [CMS Open Payments research payments · Top](https://spiral.ai/tools/alexandria/openpaymentsdata-cms-gov/research-payments/top) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| site |  | — | Where the research was paid: a teaching hospital's 6-character CMS Certification Number (`450076`), or words matched case-insensitively anywhere in the teaching hospital or non-covered recipient entity name (`MD Anderson` matches both `Ut Md Anderson Cancer Center` and `MD ANDERSON CANCER CENTER UNIVERSITY OF TEXAS`). Sites are named as each manufacturer reported them, so try a short distinctive name. |
| limit | 1 to 100 | 25 | Most results to return. |
| state |  | — | Two-letter US state or territory code of the recipient (`TX`). Pattern: ^\s*[A-Za-z]{2}\s*$. |
| study |  | — | Words matched case-insensitively anywhere in the study name as the manufacturer reported it (`ARTEMIDE-Lung04`, `asciminib`). Many manufacturers write the protocol title, some only a protocol number. |
| nct_id |  | — | A ClinicalTrials.gov ID (`NCT06868277`), matched against the reported ClinicalTrials.gov identifier or anywhere in the study name. Manufacturers often leave the identifier blank, so no match does not mean the trial has no payments; search `study` with the trial's acronym too. Pattern: ^\s*[Nn][Cc][Tt][0-9]{8}\s*$. |
| offset | 0 to 1000 | 0 | Results to skip; pass `next_offset` from the previous page. |

## 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.

## Overview

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

## CMS Open Payments research payment rankings in other agents

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

## More opencode guides

- [CMS Open Payments annual research payment totals](https://spiral.ai/integrations/opencode/cms-open-payments-annual-research-payment-totals)
- [CMS Open Payments research payment records](https://spiral.ai/integrations/opencode/cms-open-payments-research-payment-records)
- [CMS Medicare negotiated drug prices](https://spiral.ai/integrations/opencode/cms-medicare-negotiated-drug-prices)
- [CMS Part B drug payment limit history](https://spiral.ai/integrations/opencode/cms-part-b-drug-payment-limit-history)
- [CDC cancer incidence and death statistics](https://spiral.ai/integrations/opencode/cdc-cancer-incidence-and-death-statistics)
- [CMS Part B drug payment limits](https://spiral.ai/integrations/opencode/cms-part-b-drug-payment-limits)

## 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.

