Skip to main content
Glama

PlanRefer

Check drug coverage

check_drug_coverage
Read-only

Whether a plan covers a medication. Most state-run marketplace plans are not included yet. Use this when a person asks whether a plan covers a medicine. Call it first with the medicine name, let the person pick the exact product, then call again with that product, the ZIP code, and the plan IDs from search_plans.

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": "check_drug_coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoThe ZIP code. Needed with rxcuis. Give it with drugName too when you know it: most state-run marketplace states answer at once that PlanRefer has no drug data.
rxcuisNoThe rxcui codes of the exact products the person takes, from an earlier answer of this tool. Never guess one.
planIdsNoThe official plan IDs to check, from search_plans. Needed with rxcuis.
drugNameNoThe medicine's name. Use this first: the answer lists the exact products, and the person picks theirs.
countyFipsNoThe 5 digit county code. Send it only after a tool listed the counties for a ZIP code that sits in more than one county.

Output Schema

NameRequiredDescriptionDefault
rowsNoOne row per plan and product that CMS answered for. A pair with no row was not answered. It does not mean not covered.
yearNo
stateNo
statusYes
handoffNo
messageNoWhat to do next, in plain words.
countiesNo
productsNoExact products that match the name. Ask the person which one they take.
uncheckedPlanIdsNoPlans that could not be asked about right now. Asking again later may answer them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that with the coverage gap for state-run marketplace plans and the requirement to confirm the exact product with the user. It does not describe rate limits, failure modes, or partial-result behavior, so it stays a solid but unremarkable 3 rather than higher.

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?

Four short sentences, front-loaded with the core purpose, then the caveat, then the invocation recipe. No filler or restated title, and every sentence conveys actionable information.

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 an output schema present, return values need no explanation, and the description covers the purpose, the caveat, and the two-step invocation. It omits any mention of the county-disambiguation branch around countyFips, which an agent would only learn from the schema.

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 baseline is 3. The description adds workflow meaning by pairing parameters across two calls (drugName first; rxcuis with zip and planIds second), but it never mentions countyFips, leaving the schema to carry that parameter entirely.

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 states a concrete verb+resource: determining whether a plan covers a medication. It is clearly distinguishable from get_plan_details or check_eligibility by its drug-coverage focus, though it does not explicitly contrast itself with those siblings by name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger (a person asks whether a plan covers a medicine) and lays out the exact two-call sequence: first with drugName so the user picks the product, then again with rxcuis, zip, and planIds from search_plans. It also flags a limitation (most state-run marketplace plans not yet included), which tells the agent when results may be incomplete.

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