Skip to main content
Glama

Payer Policies

Payer Formulary Lookup

payer_formulary_lookup
Read-onlyIdempotent

Which Medicare Part D and Medicare Advantage drug plans list a drug on their formulary, with its tier and whether prior authorization, step therapy or a quantity limit applies. Drug is a brand or ingredient name (Eliquis or apixaban), resolved through RxNorm to every product strength and form, or RxNorm product ids. Optional contract (H0028), plan (H0028-007 or words of the plan name), state and county narrow the plans. Returns each formulary that lists the drug with tier and restriction flags per product, the plans that use it (name, contract, premium, deductible, service area states), a summary of how many formularies restrict it, and the plans in the stated scope whose formulary does not list it. Source: CMS monthly Part D formulary file; every answer carries data_as_of (the date CMS lists on the file) and the contract year, and is as of that date: check Medicare Plan Finder. A drug missing from a formulary is reported as not listed in that formulary, never as not covered. When more formularies match than are returned, truncated is true and coverage gives next_offset; pass it as offset.

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": {
      "drug": "apixaban",
      "limit": 2,
      "state": "IL",
      "county": "Cook",
      "plans_per_formulary": 3
    },
    "name": "payer_formulary_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugYesBrand or ingredient name, e.g. Eliquis, apixaban, Ozempic, semaglutide, metformin. A brand reaches its branded products; an ingredient reaches every product containing it, generic and branded. Digits are read as RxNorm product ids, comma-separated, e.g. 1364441,1364447
planNoOptional plan: CONTRACT-PLAN or CONTRACT-PLAN-SEGMENT (H0028-007, H0028-007-000) or words of the plan name (Humana Gold Plus)
limitNoMaximum formularies per page (default 10, max 50). A larger value is cut to 50 and the answer says so in coverage.limit_clamped
stateNoOptional two-letter state code; keeps plans whose service area includes it
countyNoOptional county name with state (Cook with state IL) or the 5-digit CMS county code; keeps plans serving that county
offsetNoOptional: formularies to skip, for paging (default 0). Use coverage.next_offset from the previous answer
contractNoOptional CMS contract id, e.g. H0028 or S5601
plans_per_formularyNoMaximum plans listed under each formulary (default 20, max 200); plan_count always gives the total

Output Schema

NameRequiredDescriptionDefault
drugYesHow the drug was resolved through RxNorm
foundYesAt least one formulary used by a plan in scope lists the drug
scopeYes
reasonNo
sourceYes
summaryYes
coverageYes
cms_termsYesCMS Agreement for Use conditions: as of data_as_of, check Medicare Plan Finder
truncatedYes
data_as_ofYesThe date CMS lists on the formulary file (YYYY-MM-DD)
formulariesYes
cms_publishedNo
contract_yearYesContract (plan) year or years the file covers, e.g. 2027
plans_not_listingYes
reading_the_answerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile is covered. The description nonetheless adds real behavioral context: CMS monthly file as source, data_as_of and contract year on every answer, truncation signalled by a truncated flag with coverage.next_offset for paging, and the semantic caveat that a drug absent from a formulary is reported as 'not listed', never 'not covered'. That is above the annotation baseline, though pagination semantics are only partly in the description and rate/size limits are left to the schema.

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 question, then scope, return shape, source and caveats in a sensible order. The prose is dense and runs long with several clauses chained into single sentences, but nearly every clause carries operative information rather than filler.

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?

Despite 8 parameters, an output schema and rich annotations, the description still supplies what the agent needs: input resolution rules, scope narrowing, the return shape, the data vintage, the truncation/paging contract and the 'not listed vs not covered' interpretation rule. Nothing material for correct invocation is missing.

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 description coverage is 100%, so a baseline of 3 applies, but the description adds meaning beyond the schema: it explains that a brand or ingredient is resolved through RxNorm to every product strength and form, and that contract/plan/state/county act as successive plan-scope narrowers. It does not add much on limit or plans_per_formulary beyond what the schema already documents.

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 precise verb and resource: which Medicare Part D and Medicare Advantage plans list a drug, with tier and restriction flags. It is unmistakably distinct from the payer-policy siblings (policy text vs formulary membership) and even defines what the drug input can be.

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?

Gives clear applicable scope (Medicare Part D / MA formularies) and explains how optional contract, plan, state and county narrow results, including the plan-name alternative. It does not explicitly say when to prefer the sibling payer policy tools or when-not to use this one, so it stops 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.