Skip to main content
Glama

Hospital Price Search

hospital_price_search
Read-onlyIdempotent

What hospitals near a US ZIP charge for one service, from the standard charges files each hospital publishes under the CMS price transparency rule. Per hospital: gross charge (list price, not what anyone pays), self-pay discounted cash price, the de-identified min/max negotiated amounts, and a summary of payer-specific negotiated dollar rates; pass payer and/or plan to get that payer's negotiated rate rows. Each rate carries dollar_available: when a hospital published a percentage or formula instead of a dollar amount it says so and gives the hospital's own text rather than a number. COVERAGE IS PARTIAL AND STATED (the store is loaded state by state; each response lists the states loaded): every response says how many hospitals in range have prices loaded, why others do not (the hospital's site blocks us, no file found, ...), and distinguishes "no hospital in range", "hospital held but code absent" and "code present but payer not listed". Holds only the CMS 70 shoppable CPT/HCPCS services and MS-DRGs. Use for "what does a head CT cost near 02139", "MS-DRG 470 near 10016 for Aetna".

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": {
      "code": "470",
      "near": "60453",
      "limit": 4,
      "radius_mi": 10
    },
    "name": "hospital_price_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe service code: a CPT/HCPCS code from the CMS 70 shoppable services (e.g. "70450" head CT, "45378" colonoscopy, "99213"-style E&M codes only where on that list) or an MS-DRG number (e.g. "470" major joint replacement).
nearYesA 5-digit US ZIP ("10016") or "lat,lon" ("40.7459,-73.9780").
planNoCase-insensitive substring of the plan name (e.g. "ppo", "medicare advantage").
limitNoHospitals to return (1-50, default 20), nearest first.
payerNoCase-insensitive substring of the payer name (e.g. "aetna", "blue cross"). Returns that payer's negotiated rows. Major payer families are matched under their other spellings too ("blue cross" also finds BCBS / Blue Shield / Anthem; "uhc" also finds UnitedHealthcare); each hospital's payer_match says which spelling matched.
settingNoRestrict to inpatient or outpatient pricing. Default: both.
code_typeNoOptional. Inferred when omitted: 1-3 digits is an MS-DRG, a 5-character code is CPT/HCPCS.
radius_miNoSearch radius in miles (1-150, default 25). Straight-line, from ZIP centroid to the hospital's ZIP centroid.
rates_per_hospitalNoWith payer/plan: negotiated rows per hospital (1-25, default 5).

Output Schema

NameRequiredDescriptionDefault
hintNoHow to narrow or fix the request
foundNoWhether at least one priced result was found
totalNoHospitals priced for the query
reasonNoMachine-readable reason when found is false
sourceNoPublisher and dataset
messageNoPlain-language explanation of the reason
coverageNoWhich states and how many hospitals the store holds
returnedNoHospitals in this response
searchedNoThe query as interpreted
hospitalsNoHospitals with their prices or absence reasons
truncatedNoMore hospitals than returned
data_as_ofNoFile last-updated date, or the store cycle
not_pricedNoHospitals without a price and why
licence_noteNoReuse-licence caveat
narrowing_hintNoHow to narrow
hospitals_searchedNoCounts of hospitals in range, with prices, priced

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / payer / description
      Previous value: -"Case-insensitive substring of the payer name (e.g. \"aetna\", \"blue cross\"). Returns that payer's negotiated rows."New value: +"Case-insensitive substring of the payer name (e.g. \"aetna\", \"blue cross\"). Returns that payer's negotiated rows. Major payer families are matched under their other spellings too (\"blue cross\" also finds BCBS / Blue Shield / Anthem; \"uhc\" also finds UnitedHealthcare); each hospital's payer_match says which spelling matched."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With annotations already covering read-only/idempotent semantics, the description still adds substantial disclosure: coverage is partial and per-response state lists, three distinct empty-result meanings ('no hospital in range', 'hospital held but code absent', 'code present but payer not listed'), and dollar_available explaining when a percentage/formula is published instead of a dollar figure. That is exactly the behavioral context an agent needs to interpret results correctly.

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?

Purpose and data source are front-loaded, and the empty-result taxonomy is packed densely without filler. It is somewhat run-on with heavy capitalization and parenthetical asides, so it reads as dense rather than tight, but nearly every clause carries information.

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 9-parameter, partially-covered open-world data tool with an output schema, the description covers scope limits, coverage caveats, result-shape semantics and failure modes. Return-value format is omitted but that is legitimately delegated to the output schema.

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 still earns more by explaining the interaction between payer/plan and the rate rows ('pass payer and/or plan to get that payer's negotiated rate rows') and by tying the code parameter to the CMS 70 service list. It leaves other parameter semantics (radius, setting, limits) entirely to 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?

The description names a specific verb and resource ('what hospitals near a US ZIP charge for one service') and states the data source (CMS price transparency standard charges files) plus exactly what each result contains. It is clear apart from generic research siblings, but it never distinguishes itself from the closely related hospital_price_compare and hospital_price_coverage tools.

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 gives concrete use cases ('what does a head CT cost near 02139', 'MS-DRG 470 near 10016 for Aetna') and states scope limits ('Holds only the CMS 70 shoppable CPT/HCPCS services and MS-DRGs'). It does not say when to prefer hospital_price_compare or hospital_price_coverage instead, which is the main gap for a tool with two near-identical siblings.

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.