Skip to main content
Glama

Part D plans covering a drug in a county

medicare_partd_coverage
Read-onlyIdempotent

Which Medicare Part D plans in this county cover this drug, at what tier and cost? Every PDP and Medicare Advantage drug plan with tier, prior authorization, step therapy, quantity limit, premium and copay, plan years 2026 and 2027, computed by Distill from CMS’s monthly formulary files. From CMS’s monthly Part D formulary public use file: every stand-alone (PDP) and Medicare Advantage drug plan sold in the county (by SSA county code, or state and county name), whether its formulary covers the drug (RxCUI, or the NDC the file lists), and on what terms: tier, prior authorization, step therapy, quantity limit, negotiated-drug flag, the plan’s premium and deductible, and the 30-day initial-coverage cost sharing for that tier at each pharmacy type. Covering plans come lowest tier first, then lowest premium. Pass plan_year=2027 for open enrollment. Employer and PACE plans are not in the file. Refreshed monthly (live freshness: /status). Price: $0.02 per call. Free tier: 3 free answers a day (UTC) per IP for this family's tools, at most 3 rows per answer; calls through Claude's connectors share one daily free allowance per family instead. An unpaid call takes one unless its _meta["distill/free-tier"] is "skip". Answers in a summary view of about 3,000 tokens; view: "full" for every row. Confidence: Freshness only (the plans and terms are read from the CMS file deterministically): 1 until 45 days after the served file’s date (CMS posts one a month), then halving every 30 days. Medicare Part D formulary and plan data as of the CMS public use file’s date (file_date), processed by Distill; the Medicare Plan Finder (medicare.gov/plan-compare) may have newer information. Not enrollment, coverage or medical advice; confirm with the plan. See /terms.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "medicare_partd_coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
ndcNoAn 11-digit NDC as the formulary file lists it (one per RxCUI); prefer rxcui.
kindNopdp, ma or all (default).
viewNosummary (the default): the answer a model needs, budgeted; full: every row (a free answer stays capped).
limitNoAt most this many plans (default 20).
rxcuiNoThe drug’s RxNorm concept id (RxCUI), e.g. 617311 for atorvastatin 40 mg oral tablet.
stateNoTwo-letter state code, with county.
countyNoCounty name, with state, e.g. Denver.
plan_yearNoThe plan (benefit) year, e.g. 2027 for open enrollment (default: the current year).
county_codeNoThe SSA state-county code, e.g. 06150 (Denver, CO).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "summary (the default): the answer a model needs, budgeted; full: every row (a free answer stays capped).",
      +  "enum": [
      +    "summary",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, it discloses the CMS source, monthly refresh cadence, freshness confidence decay, per-call pricing, free-tier limits, sorting behavior, summary/full view behavior, and excluded plan types. These are substantial operational details an agent needs.

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?

The purpose is front-loaded and the dense details are mostly justified by the tool’s pricing, freshness, and view behavior. There is some repetition between the Distill/CMS source sentences, keeping it from a 5.

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 complex 9-parameter tool with no output schema, it explains the returned fields, sorting, summary versus full behavior, confidence, source limitations, and pricing/free-tier mechanics. An agent has enough information to call and interpret it correctly.

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%, so the baseline is 3, but the description adds useful meaning: prefer rxcui over ndc, plan_year=2027 for open enrollment, and county lookup by SSA code or state/county name. It reinforces but does not fully explain every parameter 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 opens with a specific question identifying the exact resource and scope: Part D plans in a county covering a drug, with tier and cost. It clearly distinguishes the result set from unrelated sibling tools and names the included plan types.

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?

It gives clear usage context, including passing plan_year=2027 for open enrollment and excluding employer and PACE plans. It does not explicitly name an alternative tool for those excluded cases, but the boundaries are clear enough for correct invocation.

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