Skip to main content
Glama

List the plans a hospital files rates under

list_hospital_plans
Read-only

The payers and plans one hospital files negotiated rates under, across all its codes, most codes first, paginated, with code_count, payer_rate_rows and filed_rate_count. 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": {
      "hospital_id": "<hospital_id>"
    },
    "name": "list_hospital_plans"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_sizeNoDefaults/caps at 500.
page_tokenNoOpaque next_page_token from a previous response; only valid with the same request fields.
payer_slugNoOptional: only this payer's plans.
hospital_idYesA hospital_id from list_hospitals.
min_code_countNoLeave out plans with fewer codes than this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavior: result ordering (most codes first), pagination, the fields each row carries, total_count, and the specific UNAVAILABLE failure and its cause. It stops short of saying what page_size does at the boundary or how ordering breaks ties, but the added context is substantial.

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

Conciseness5/5

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

Two sentences, front-loaded with the resource and its scope, then ordering, pagination, return fields and the error condition. Every clause carries information; nothing is redundant with the name or title.

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 correctly supplies the return shape (code_count, payer_rate_rows, filed_rate_count, total_count), ordering and pagination, and the main failure mode. Only minor gaps remain, such as tie-breaking in the ordering and whether page_size has a default when omitted here.

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 five parameters are already documented in the schema, which sets the baseline at 3. The description's mention of 'across all its codes' and 'most codes first' loosely motivates min_code_count and the sort order, but adds no syntax or constraint detail beyond the schema.

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 resource (the payers and plans a single hospital files negotiated rates under) plus ordering and returned fields, so it is clearly distinct from a generic payer listing. It does not explicitly name the sibling it differs from (e.g. list_payer_plans or list_hospital_payers), so differentiation is inferable rather than stated.

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 only implied by the resource description; there is no explicit 'use this when' or 'use X instead' statement naming alternatives among the many sibling listing tools. The one real guideline given is an operational precondition: it fails with UNAVAILABLE until the server has opened a hospital-prices snapshot, which is useful but is a failure mode rather than a routing rule.

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.