Skip to main content
Glama

Search CMS Medicare Part D drug spending

search_drug_spending
Read-onlyIdempotent

Search the live CMS Medicare Part D Spending by Drug dataset by brand name, generic name, or therapeutic keyword.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_drug_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax records to return (default 15, max 50).
queryYesBrand or generic drug name (e.g. "Ozempic", "Eliquis", "Semaglutide").
overall_onlyNoReturn only Overall aggregated rows (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is fully covered elsewhere. The description's one contribution beyond that is 'live', signaling current rather than historical data, but it says nothing about pagination, result volume (beyond the schema cap), or what a returned row contains.

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

Conciseness5/5

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

A single sentence with no filler, front-loading the verb and the dataset before the searchable keys. Nothing in it is redundant with the title or restates the name pointlessly.

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

Completeness3/5

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

For a three-parameter read-only search with full schema coverage and no output schema, the description is serviceable but thin. It never indicates what a result row represents (spending metrics per drug) or that overall_only defaults to true, which materially changes what an agent receives.

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 the schema already documents query, limit, and overall_only, and the baseline is 3. The description adds one genuinely new element by mentioning 'therapeutic keyword', which the schema's query field ('Brand or generic drug name') does not, but it leaves the overall_only aggregation toggle entirely to the schema.

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

Purpose4/5

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

The description gives a specific verb (Search) plus a precise resource (live CMS Medicare Part D Spending by Drug dataset) and enumerates the lookup keys (brand name, generic name, therapeutic keyword). It stops short of differentiating itself from siblings like get_drug_spending_trend or compare_drugs_spending, but the lookup-oriented phrasing makes the retrieval shape clear.

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?

Usage is only implied: the phrase 'search ... by brand name, generic name, or therapeutic keyword' tells an agent what kind of input selects this tool, but there is no explicit when-to-use versus when-to-use-a-sibling (e.g., trends or comparisons), and no stated prerequisites.

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.