Skip to main content
Glama

Get a payer

get_payer
Read-only

One payer's header: display name and counts, plus its top codes (grouped like the provider RPCs; the filter may name only terms the grouping keeps) and the states it appears in. state narrows only the payer's counts: top_codes stay network-wide. NOT_FOUND when no hospital in the state files the payer. 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": "get_payer"
  }
}

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.
filterNoKeeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are never blended: a facility fee and a professional fee are separate bills.
group_byNoHow a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no filter, PAYER_GROUP_BY_BILLING_CLASS plus a billing_class, PAYER_GROUP_BY_METHODOLOGY plus a methodology, per-combination all three; PAYER_GROUP_BY_ALL_EXCEPT_PER_DIEM is one figure like ALL but without the per diem rows, so a day rate does not pull a stay's price down), else INVALID_ARGUMENT.
payer_slugYesA payer_slug from list_payers or list_code_payers, e.g. "aetna".
top_code_countNoHow many top codes to return. Defaults to 10, capped at 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / group_by / description
      Previous value: -"How a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no filter, PAYER_GROUP_BY_BILLING_CLASS plus a billing_class, PAYER_GROUP_BY_METHODOLOGY plus a methodology, per-combination all three), else INVALID_ARGUMENT."New value: +"How a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no filter, PAYER_GROUP_BY_BILLING_CLASS plus a billing_class, PAYER_GROUP_BY_METHODOLOGY plus a methodology, per-combination all three; PAYER_GROUP_BY_ALL_EXCEPT_PER_DIEM is one figure like ALL but without the per diem rows, so a day rate does not pull a stay's price down), else INVALID_ARGUMENT."
    • changedInput schema / properties / group_by / enum
      Previous value: -[
      -  "PAYER_GROUP_BY_PER_COMBINATION",
      -  "PAYER_GROUP_BY_BILLING_CLASS",
      -  "PAYER_GROUP_BY_METHODOLOGY",
      -  "PAYER_GROUP_BY_ALL"
      -]New value: +[
      +  "PAYER_GROUP_BY_PER_COMBINATION",
      +  "PAYER_GROUP_BY_BILLING_CLASS",
      +  "PAYER_GROUP_BY_METHODOLOGY",
      +  "PAYER_GROUP_BY_ALL",
      +  "PAYER_GROUP_BY_ALL_EXCEPT_PER_DIEM"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / group_by / description
      Previous value: -"How a hospital's rates are grouped (default GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (GROUP_BY_ALL with no filter, GROUP_BY_BILLING_CLASS plus a billing_class, GROUP_BY_METHODOLOGY plus a methodology, per-combination all three), else INVALID_ARGUMENT. GROUP_BY_FACILITY_PLUS_PROFESSIONAL is not available for payer rates."New value: +"How a hospital's rates are grouped (default PAYER_GROUP_BY_PER_COMBINATION: per billing class + methodology + setting). The filter must name every term the grouping keeps (PAYER_GROUP_BY_ALL with no filter, PAYER_GROUP_BY_BILLING_CLASS plus a billing_class, PAYER_GROUP_BY_METHODOLOGY plus a methodology, per-combination all three), else INVALID_ARGUMENT."
    • changedInput schema / properties / group_by / enum
      Previous value: -[
      -  "GROUP_BY_PER_COMBINATION",
      -  "GROUP_BY_BILLING_CLASS",
      -  "GROUP_BY_METHODOLOGY",
      -  "GROUP_BY_ALL"
      -]New value: +[
      +  "PAYER_GROUP_BY_PER_COMBINATION",
      +  "PAYER_GROUP_BY_BILLING_CLASS",
      +  "PAYER_GROUP_BY_METHODOLOGY",
      +  "PAYER_GROUP_BY_ALL"
      +]
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a safe read-only, closed-world operation, and the description adds real value on top: NOT_FOUND semantics tied to the state, UNAVAILABLE until the server has opened a serving snapshot, and the non-obvious rule that state narrows counts but leaves top_codes network-wide. It stops short of describing return shape details, but that is a minor gap against an otherwise strong disclosure.

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?

Four dense sentences with no filler, and the core content (what is returned) is front-loaded. Readability is somewhat hampered by stacked parentheticals in the first sentence, but every clause carries 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 no output schema, the description carries the return-value burden and does so reasonably: it names the header fields, the top-codes list, and the states list, plus both error conditions. It is nearly complete for a single-resource getter, though it could say more about how counts and top_code_count interact.

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 contributes a genuine cross-parameter rule not spelled out in the schema: state affects only the payer's counts while top_codes stay network-wide. It also restates the filter/grouping constraint already documented in the schema, which is redundant but harmless.

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?

States a specific verb+resource ('One payer's header') and enumerates the returned fields: display name, counts, top codes, and states. The only weakness is the cross-reference 'grouped like the provider RPCs', which is vague and does not name the sibling it refers to, so an agent cannot fully distinguish this from get_code_payer_price_distribution or list_payer_hospitals without reading the 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?

Usage is implied rather than stated: the tool is the single-payer header lookup, and the payer_slug schema note points to list_payers/list_code_payers for discovery. There is no explicit when-to-use versus list_payer_hospitals, list_payer_plans, or list_code_payer_hospitals, and no when-not guidance.

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.