Skip to main content
Glama

Get 5-year Medicare drug spending trend

get_drug_spending_trend
Read-onlyIdempotent

Fetch year-by-year (2020 through 2024) Medicare Part D total spending, claims, beneficiaries, and weighted unit-cost CAGR for a drug.

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": {
      "drug_name": "<drug_name>"
    },
    "name": "get_drug_spending_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
drug_nameYesBrand or generic drug name (e.g. "Ozempic", "Eliquis").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the fixed 2020-2024 window and the exact metric set returned (spending, claims, beneficiaries, CAGR), which matters because there is no output schema. It omits, however, how the drug name is matched (brand vs generic, case, fuzzy matching) and what happens for a drug with no Part D records.

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 that front-loads the verb, the time window, and the returned metrics with no filler. Nothing is redundant with the title, which only says '5-year trend' without the years or the metric list.

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 no output schema, the description carries the burden of describing return values and does so by naming the four metric families and the year range. For a one-parameter read tool that is close to sufficient; the remaining gap is not-found or ambiguous-drug-name behavior, which an agent would need to handle correctly.

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 coverage is 100% and the single parameter is documented with examples ('Ozempic', 'Eliquis'), so the baseline is 3. The description adds only the phrase 'for a drug', which conveys no matching or normalization semantics beyond what the schema already states.

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?

States a specific verb (Fetch) and a precisely scoped resource: year-by-year 2020-2024 Medicare Part D spending, claims, beneficiaries, and weighted unit-cost CAGR for a single drug. The field enumeration and fixed 5-year window make the tool's output distinguishable from a generic search. It stops short of naming a sibling (e.g. compare_drugs_spending) as the alternative, so differentiation is inferred from the single-drug scope rather than stated.

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: 'for a drug' signals a single-drug lookup, which implicitly separates it from the multi-drug compare and search siblings. There is no explicit when-to-use statement, no exclusion, and no mention of what to do when the caller wants cross-drug or manufacturer-level views.

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.