Skip to main content
Glama

List the hospitals that file a payer

list_payer_hospitals
Read-only

The hospitals that file a payer across all codes, optionally in one state, paginated: plan_count, payer_rate_rows and filed_rate_count per hospital. Includes total_count. For one payer's rates for a specific code use list_code_payer_hospitals. 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_hospitals"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOptional case-insensitive hospital-name search.
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.
order_byNoDefaults to PAYER_HOSPITAL_ORDER_RATE_ROWS_DESC.
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".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark this as a safe read (readOnlyHint true, destructiveHint false), so the description focuses on what annotations cannot convey: results are paginated, the response carries per-hospital counters plus total_count, and the call fails with UNAVAILABLE until the hospital-prices snapshot has been opened. That failure prerequisite is exactly the kind of behavioral context an agent needs before calling.

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 dense sentences, front-loaded with the scope and the returned fields, and the sibling pointer plus failure mode come last. Slightly run-on (a colon list folded into the opening clause), but nothing is wasteful or buried.

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 compensates by enumerating the returned counters and total_count, and it covers pagination and the UNAVAILABLE startup dependency. It leaves implicit what 'filing' a payer means (hospitals with posted rates for that payer) and does not mention the default ordering, which the schema covers instead.

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 all six parameters — including the state caveat about hospitals counting in multiple states and the enum-backed order_by default — are already documented in the schema. The description only restates that state is optional and that results are paginated, adding no syntax or format meaning beyond structured fields; the named plan_count/payer_rate_rows/filed_rate_count fields are return values, not parameter guidance.

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 resource (hospitals that file a given payer) with its exact scope (across all codes, optional single state, paginated) and names the sibling that covers the narrower case (list_code_payer_hospitals). An agent can distinguish it from list_hospitals and list_hospital_payers without opening any schema.

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 an explicit routing rule: use list_code_payer_hospitals when you need one payer's rates for a specific code, implying this tool is for the payer-wide view. It does not spell out the reverse condition (when a payer-wide listing is the wrong choice, e.g. for a single hospital lookup against list_hospital_payers), leaving some inference to the agent.

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.