Skip to main content
Glama

get_open_payments

Read-only

CMS Open Payments (Sunshine Act): payments from drug/device makers and GPOs to US physicians, practitioners and teaching hospitals, live from CMS (total_count: CMS's filtered count). payment_type: general (meals, travel, consulting, speaker fees, royalties), research, ownership (physician stakes). Payer as filed, no ticker. summarize=true: CMS's yearly totals per company and nature (only year, company apply). Disclosure ≠ wrongdoing: these are lawful, statutorily disclosed payments. More: keyvex.com/docs/tools/get_open_payments

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_open_payments"
  }
}

Input Schema

NameRequiredDescriptionDefault
npiNoExact.
yearNoDefault latest; only years CMS publishes.
limitNoDefault 25.
stateNo2-letter code.
natureNogeneral only. Substring.
offsetNo
companyNoPayer name substring.
productNogeneral only. Drug/device substring.
summarizeNo
payment_typeNoDefault general.
recipient_last_nameNoExact, any case.
recipient_first_nameNoExact, any case.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / company / description
      Previous value: -"Substring against the paying manufacturer / GPO name (e.g., 'pfizer', 'medtronic')."New value: +"Payer name substring."
    • changedInput schema / properties / limit / description
      Previous value: -"Records per page. Default 25, max 500 (CMS page cap)."New value: +"Default 25."
    • changedInput schema / properties / nature / description
      Previous value: -"Substring against nature of payment (general only; e.g., 'consulting', 'speaker', 'royalty', 'food')."New value: +"general only. Substring."
    • changedInput schema / properties / npi / description
      Previous value: -"Recipient National Provider Identifier (exact, 10 digits). Precise join key to get_oig_exclusions."New value: +"Exact."
    • removedInput schema / properties / offset / description
      Removed value: -"Pagination offset into the filtered result set."
    • changedInput schema / properties / payment_type / description
      Previous value: -"Dataset: general (default — meals/consulting/speaker fees), research, or ownership (physician stakes)."New value: +"Default general."
    • changedInput schema / properties / product / description
      Previous value: -"Substring against the associated drug / device name (general only; e.g., 'eliquis', 'ozempic')."New value: +"general only. Drug/device substring."
    • changedInput schema / properties / recipient_first_name / description
      Previous value: -"Recipient first name (exact, case-insensitive)."New value: +"Exact, any case."
    • changedInput schema / properties / recipient_last_name / description
      Previous value: -"Recipient physician / practitioner last name (exact, case-insensitive)."New value: +"Exact, any case."
    • changedInput schema / properties / state / description
      Previous value: -"Two-letter recipient state code (e.g., 'TX')."New value: +"2-letter code."
    • removedInput schema / properties / summarize / description
      Removed value: -"true = CMS's pre-aggregated per-(company, nature) yearly totals instead of individual payments."
    • changedInput schema / properties / year / description
      Previous value: -"Program year (e.g., 2023). Default: latest published year."New value: +"Default latest; only years CMS publishes."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds genuinely useful behavioral context beyond that: data is 'live from CMS', total_count reflects CMS's filtered count, payer names are 'as filed, no ticker', and the interpretive note that these are lawful, statutorily disclosed payments rather than evidence of wrongdoing. It stops short of describing pagination behavior or result ordering.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is dense and front-loaded with the dataset definition before parameter notes. Every clause carries information, though the telegraphic style ('Payer as filed, no ticker', 'only year, company apply') is terse enough to risk misreading. A doc URL is included rather than expanded prose, which keeps it compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 optional parameters and no output schema, the description does the needed work: it names the return field total_count, explains the summarize mode's reduced grouping, and warns about payer name normalization. Minor gaps remain around pagination limits and what a non-summarized record contains, but nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the baseline is 3, but the description adds real meaning: payment_type values are unpacked (general = meals, travel, consulting, speaker fees, royalties; research; ownership = physician stakes), and it clarifies that summarize=true only works with year and company. This goes beyond what the schema descriptions convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific dataset and scope: 'payments from drug/device makers and GPOs to US physicians, practitioners and teaching hospitals, live from CMS.' This is unambiguous and clearly distinguishable from sibling tools like get_fec_contributions or get_congressional_trades, which cover different payment/disclosure domains.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the use case (looking up Sunshine Act payment records by physician, company, year, or payment type) and gives parameter-level usage constraints such as 'only year, company apply' for summarize and 'general only' for nature/product. However, it never states when to use this tool versus alternatives, nor any exclusion conditions; routing guidance is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources