Skip to main content
Glama

Open Payments Top Companies

open_payments_top_companies
Read-onlyIdempotent

Rank the drug and device manufacturers that paid US physicians and teaching hospitals the most in a program year, the "who spends the most on doctors" question. Returns each company with its total US dollars, payment count and how many distinct recipients it reached, ordered by spend. CMS publishes no aggregate and its live API cannot group over the 14-million-row payment table, so this reads a summary computed offline; the response states the program year and when the summary was refreshed. Payments are disclosures of transfers of value, not evidence of wrongdoing.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
limitNoCompanies to return, 1-200 (default 25).
companyNoOptional: one company, to get its total rather than the ranking. Matched case-insensitively.
program_yearNoProgram year, e.g. 2025. Defaults to the most recent year loaded, the response always says which.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / program_year / description
      Previous value: -"Program year, e.g. 2025. Defaults to the most recent year loaded — the response always says which."New value: +"Program year, e.g. 2025. Defaults to the most recent year loaded, the response always says which."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "limit": 3
      +  },
      +  {
      +    "company": "Pfizer",
      +    "program_year": 2025
      +  }
      +]
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, and the description adds substantial context beyond them: the data is a summary "computed offline" because the CMS live API cannot group over a 14-million-row table, and the response reports the program year and refresh timestamp. It also sets an interpretive guardrail that payments are disclosures of transfers of value, not evidence of wrongdoing, which is genuinely valuable framing an agent would not otherwise have.

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 purpose and scope are front-loaded in the first sentence, followed by return-shape/provenance and then the disclaimer, so no sentence is out of order. The phrasing is slightly expansive (the quoted colloquial question, the long CMS-API justification), but each element serves selection or interpretation rather than padding.

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

Completeness5/5

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

With no output schema, the description carries the burden of describing results and does so: it lists total US dollars, payment count, distinct recipients, ordering, program year and refresh timestamp. Nothing an agent needs to call this tool correctly or to interpret its output is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented with ranges, defaults and matching behavior, making 3 the baseline. The description only adds indirect color, noting that the response always states the program year (relevant to the `program_year` default) and that `company` returns a single total rather than a ranking; it adds no syntax or format detail the schema lacks.

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?

The description gives a specific verb and resource ("Rank the drug and device manufacturers") plus a scope ("in a program year") and a colloquial restatement ("the 'who spends the most on doctors' question") that lets an agent match the tool to a user's intent immediately. The phrase "ordered by spend" and "ranking" make it clear this tool is the ranking entry point, distinct from a single-company lookup sibling.

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

Usage Guidelines4/5

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

The description clearly indicates the situation that selects this tool (a top-spender ranking question) and explains that the `company` parameter is used "to get its total rather than the ranking," which is useful routing guidance. It does not name a sibling alternative or state any exclusion (for example, when to use a per-company detail tool instead), so it falls short of a 5.

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.