Skip to main content
Glama

Medicare Part D Top Drugs

medicare_part_d_top_drugs
Read-onlyIdempotent

Rank Medicare Part D drugs by total gross spending for a year, the biggest drugs in the Part D program, highest first. Answers "which drugs have the highest Medicare Part D spending", "top Part D drugs by cost", "what does Medicare spend the most on". Returns brand name, generic name and total spending. Spending is gross, before confidential manufacturer rebates.

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": 20
    },
    "name": "medicare_part_d_top_drugs"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoSpending year, e.g. "2023". Defaults to the newest year the dataset carries.
limitNoHow many drugs to return (1-100, default 20).

Output Schema

NameRequiredDescriptionDefault
drugsYes
totalYes
sourceYes
returnedYes
interpretationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world behavior. The description adds a valuable caveat that spending is gross and before confidential manufacturer rebates, which materially affects interpretation, though it does not discuss data vintage, rate limits, or pagination.

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?

The description is front-loaded with the core action and metric, then supports it with examples, return fields, and an important caveat. Every sentence contributes useful context without unnecessary length.

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?

For a simple top-N query tool with rich annotations, complete parameter descriptions, and an output schema, the definition provides enough context to select and invoke it correctly. The gross-spending caveat and clear ranking semantics cover the main interpretive risk.

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 defines year and limit semantics including defaults and ranges. The description reinforces the year-scoped, highest-first nature of the ranking but adds no syntax or format detail beyond the schema.

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 uses a specific verb and resource: rank Medicare Part D drugs by total gross spending, highest first. It clearly frames the tool as a top-N spending ranking, which an agent can distinguish from a generic drug-spending lookup without opening the schema.

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 quoted example questions make the intended use case explicit: highest-spending drugs, top drugs by cost, and what Medicare spends most on. It does not name when-not to use it or explicitly route to an alternative sibling tool, 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.