Skip to main content
Glama

health_drug_spending_compare

Read-only

Compare drug spending — Compare 2-8 drugs side by side in Medicare or Medicaid: drugs= brand or generic names separated by ; or commas (e.g. Eliquis;Xarelto;warfarin), program=partd (default) | partb | medicaid. Returns latest-year spending, claims, beneficiaries, cost per claim, per unit and per beneficiary, spending and claims share, 1-year and multi-year growth and unit-cost change for each, plus highlights (highest spending, most claims, lowest and highest cost per claim, fastest growth, steepest unit-cost increase). Gross spending before rebates. Source: CMS Spending by Drug datasets, data.cms.gov (US government, public domain). Price: $0.01 USDC (Base, via x402).

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": {
      "drugs": "<drugs>"
    },
    "name": "health_drug_spending_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugsYese.g. Eliquis;Xarelto;warfarin

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only and non-destructive semantics, yet the description adds real behavioral context: the CMS public-domain source, the 'gross spending before rebates' caveat, and a $0.01 USDC x402 payment requirement per call. These are non-obvious traits an agent needs before invoking.

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?

Front-loaded with the core action and scoping, and the long metric enumeration earns its place because there is no output schema. Minor waste in the 'Compare drug spending — Compare...' duplication and the dense single-block run-on structure.

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 adequately enumerates return fields (spending, claims, beneficiaries, cost per claim/unit/beneficiary, shares, growth, highlights) and discloses source and cost. The only completeness gap is the phantom 'program' parameter, which is described but absent from the schema.

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 100% for the single 'drugs' parameter, but the description still adds value with the 2-8 count limit, the ';' or comma separator syntax, and brand-vs-generic acceptance. However, it also documents a 'program' argument (partd/partb/medicaid) that does not appear in the input schema, which could mislead an agent into passing an unsupported parameter.

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 verb and resource ('Compare drug spending') plus the exact scope ('2-8 drugs side by side in Medicare or Medicaid'), which cleanly separates it from the single-drug sibling health_drug_spending and from the price/label tools.

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 implied by the 2-8 drug comparison framing and the default program (partd), but there is no explicit when-to-use/when-not-to-use statement and no named alternative for single-drug or non-Medicare/Medicaid lookups.

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