Skip to main content
Glama

Payer Policies

Get Payer Policy

get_payer_policy
Read-onlyIdempotent

One payer policy by its stable policy_id (built from the publisher and its own policy number, so it survives a moved link): its current document link, the publisher page where a replacement can be found, every edition we hold with fingerprint and date, how it is labelled (policy, listing or committee proposal), who and where it applies as the publisher states it, and its indexed sections (list_window says how many sections and products the edition holds and how many this answer carries; a long list, such as a Humana Part D criteria PDF with a section per drug, comes back 40 sections at a time: page it with section_offset or pass drug to get one drug). Get policy_id from search_payer_policies. listed_but_unread says whether the publisher lists an edition of this policy that we could not read (no extractable text, so no row) and names it; when it does, the edition marked is_current is the newest we hold and may not be the newest the publisher lists. recorded false means the refresh has not yet recorded that publisher's unreadable documents: unknown, not none.

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": {
      "policy_id": "aetna:6192-C"
    },
    "name": "get_payer_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugNoOptional brand or ingredient name: return only the sections and products named for that drug (use it on a long list such as a Humana Part D criteria PDF, which holds a section per drug)
doc_keyNoOptional exact edition id from a search result (overrides policy_id and version)
versionNoOptional edition key or label (default: the current edition)
policy_idNoStable id from a search result, e.g. aetna:6192-C or uhc:P-1475
section_limitNoOptional: sections per page (default 40, max 100)
section_offsetNoOptional: sections to skip, for paging (default 0). Use list_window.sections.next_offset from the previous answer

Output Schema

NameRequiredDescriptionDefault
foundNo
sourceNo
selectedNo
versionsNo
policy_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld), it discloses non-obvious semantics that no structured field carries: that policy_id survives a moved link, that long lists return 40 sections at a time and how to page them, that is_current may not be the publisher's newest, that listed_but_unread means an unreadable edition exists, and critically that recorded=false means unknown rather than none. That last distinction is exactly the kind of trap-avoidance context annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is two long run-on sentences with four nested parentheticals and a stacked 40-word clause about list_window. Every fact is useful, yet the density makes the definition hard to parse on first read; splitting the return-shape and edge-case notes into separate sentences would cost nothing.

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 tool with six optional parameters, an output schema, and four unreadable/refresh edge cases, the description covers retrieval, paging, filtering, and the two ambiguous flags (is_current and recorded) that would otherwise mislead. An agent can call this correctly and interpret the odd-looking responses without further context.

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; the description nevertheless adds real meaning by explaining the practical role of drug (one section per drug on a Humana Part D list), the purpose of section_offset as paging via list_window.sections.next_offset, and the interaction between doc_key and policy_id. It goes past restating 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?

States a specific verb and resource ('One payer policy by its stable policy_id') and immediately enumerates the payload: current document link, publisher page, every edition with fingerprint and date, labelling, applicability, and indexed sections. It also distinguishes itself from search_payer_policies by noting the id comes from there, so the retrieval tool is unmistakable.

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 routes the agent explicitly ('Get policy_id from search_payer_policies') and gives conditional guidance for the drug filter and for paging with section_offset. It does not name a when-not case (e.g. use search when you don't know the id beyond the one pointer), but the entry path is clear.

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.