Skip to main content
Glama

List a payer's plans

list_payer_plans
Read-only

The plans a payer is filed under, most hospitals first, paginated: plan_slug, plan name, hospital_count, code_count, payer_rate_rows and filed_rate_count. Use plan_slug with get_code_payer_price_distribution. Includes total_count. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "payer_slug": "<payer_slug>"
    },
    "name": "list_payer_plans"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoOptional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to more than national ones. Empty means every hospital; anything that is not a state code is rejected as INVALID_ARGUMENT.
page_sizeNoDefaults/caps at 500.
page_tokenNoOpaque next_page_token from a previous response; only valid with the same request fields.
payer_slugYesA payer_slug from list_payers or list_code_payers, e.g. "aetna".
min_hospital_countNoLeave out plans filed by fewer hospitals than this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description adds non-obvious behavior: default sort by hospital count, pagination, and a specific failure mode (UNAVAILABLE until the serving snapshot is opened) that an agent could otherwise misread as an empty result.

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?

Two sentences, front-loaded with what the tool returns and heavily information-dense. The field enumeration is a compact list rather than prose, though the first sentence is long enough that the usage hint and failure mode could be easier to scan if split.

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?

With no output schema, the description correctly compensates by naming the returned fields and total_count, and it covers ordering, pagination and the UNAVAILABLE precondition. Nothing an agent needs to call and interpret this tool is missing.

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 every parameter including state, min_hospital_count, page_size and page_token is already documented in the schema. The description adds no parameter-specific meaning beyond what the schema states, so the baseline 3 applies.

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 names a specific resource and scope ('the plans a payer is filed under'), enumerates the returned fields (plan_slug, hospital_count, code_count, payer_rate_rows, filed_rate_count), and states ordering ('most hospitals first') plus pagination. An agent can tell this is payer-scoped rather than hospital-scoped, separating it from list_hospital_plans without opening a schema.

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

Usage Guidelines3/5

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

It gives downstream guidance ('Use plan_slug with get_code_payer_price_distribution') and a precondition (server must have opened a snapshot), which is genuinely useful. However there is no when-to-use/when-not comparison against the sibling list tools, so the selection logic is only implied by the payer-scoping.

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.