Skip to main content
Glama

Compare Medicare Part D drug spending

compare_drugs_spending
Read-onlyIdempotent

Compare 2 to 4 prescription drugs side by side on 2024 Medicare Part D spending, beneficiaries, average spend per beneficiary, and 4-year unit-cost CAGR.

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_names": "<drug_names>"
    },
    "name": "compare_drugs_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
drug_namesYes2 to 4 drug names to compare (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 readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile needs no restating. The description usefully adds that the data is scoped to 2024 and that CAGR is measured over four years, but it stays silent on lookup failures, name-matching behavior, and whether the 2-4 cap is an error or silently truncated.

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?

One sentence, front-loaded with the verb and the comparison scope, followed by the metric list. Nothing is padded and the constraint that matters (2 to 4 drugs) appears before the metrics.

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?

There is no output schema, so listing the returned metrics in the description is the right compensation and it does that thoroughly. The remaining gap is failure behavior for unrecognized or ambiguous drug names, which matters for a free-text openWorld lookup.

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% and there is a single array parameter, so the schema already carries the type, the 2-4 bounds, and an example. The description restates the same 2-to-4 constraint without adding matching semantics such as whether brand vs generic names are accepted, which is the baseline 3.

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 leads with a specific verb and resource ("Compare ... prescription drugs ... on 2024 Medicare Part D spending") and enumerates the exact metrics compared (beneficiaries, average spend per beneficiary, 4-year unit-cost CAGR). That scope, plus the 2-to-4 side-by-side framing, distinguishes it in practice from trend and search siblings, though no sibling is named explicitly.

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 fixed inputs: this is the tool for putting several named drugs next to each other on spending metrics. There is no explicit "use this instead of get_drug_spending_trend when..." routing, and no guidance on what to do if a drug name is ambiguous or not found, so the agent must infer the boundary conditions.

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.