Skip to main content
Glama

Hospital prices for a procedure near a ZIP

hospital_prices
Read-onlyIdempotent

What does a procedure cost at hospitals near this ZIP? Cash price, gross charge and every insurer’s negotiated rate for a CPT, HCPCS or MS-DRG code at Colorado hospitals, normalized by Distill from the hospitals’ federally required price files. From the machine-readable standard-charge files hospitals must publish (45 CFR 180), parsed and normalized: for each hospital within the radius that posts the code, nearest first, the gross charge, the discounted cash price, the de-identified minimum and maximum, and every payer and plan’s negotiated dollar amount or percentage (with the v3.0 median, 10th and 90th percentile allowed amounts), payers canonicalized to a stable payer_id. Filters: payer, plan type, plan name text, setting, billing class. A summary gives nearest-rank statistics over the hospitals returned. Served states: Colorado. An area with no hospital posting the code answers 404 and is not charged. Refreshed monthly (live freshness: /status). Price: $0.02 per call. Free tier: 3 free answers a day (UTC) per IP for this family's tools, at most 3 rows per answer; calls through Claude's connectors share one daily free allowance per family instead. An unpaid call takes one unless its _meta["distill/free-tier"] is "skip". Answers in a summary view of about 3,000 tokens; view: "full" for every row. Confidence: Mean over the returned rows (each rate; an item with no rate counts once) of normalize × quality × freshness. Normalize: the stored per-rate normalize confidence (payer canonicalization: rule 1, model 0.9, fallback 0.6; rate basis for rates with no dollar amount: rule 1, model 0.9, fallback 0.75; 1 for an item with no rate). Quality of the MRF: 1 valid against the v3.0 schema, 0.85 parsed with conformance errors, 0.7 parsed only after header repair. Freshness: 1 while the MRF’s last_updated_on is at most 365 days old, then halving every 180 days (0.5 with no date), times 1 within 14 days of our fetch, then halving every 30 days. Posted standard charges from hospital machine-readable files (45 CFR 180): posted rates, not a quote; not medical or financial advice. What you pay depends on your plan, your care and the hospital. See /terms.

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": {
      "code": "<code>"
    },
    "name": "hospital_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude of the point (with lon).
lonNoLongitude of the point (with lat).
zipNoA 5-digit ZIP code (its Census ZCTA point). Give a zip, or lat and lon.
codeYesThe billing code: CPT (5 characters, e.g. 99213), HCPCS Level II (a letter and 4 digits, e.g. J1885) or MS-DRG (3 digits, e.g. 470).
planNoOptional: text the plan name (or payer name) contains as the hospital writes it, case-insensitive, e.g. "PPO" or "Medicare Advantage".
viewNosummary (the default): the answer a model needs, budgeted; full: every row (a free answer stays capped).
limitNoHow many hospitals to return, nearest first (default 10, at most 50).
payerNoOptional: a canonical payer_id (e.g. aetna, cigna, unitedhealthcare, anthem, medicare, medicaid). hospital.payers lists the payers with prices for a code.
settingNoOptional: inpatient or outpatient (items posted for both always match).
code_typeNoOptional: the code type. Inferred from the code’s shape when omitted.
plan_typeNoOptional: the canonical plan type.
radius_milesNoSearch radius in miles (default 25, at most 100).
billing_classNoOptional: facility or professional (items posted for both always match).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "summary (the default): the answer a model needs, budgeted; full: every row (a free answer stays capped).",
      +  "enum": [
      +    "summary",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, it discloses the data source (45 CFR 180 machine-readable files), 404-not-charged behavior, $0.02 per-call pricing, free-tier rules, summary versus full token budgets, confidence calculation, and monthly refresh cadence. This is unusually rich behavioral context for an agent deciding whether and how to call the tool.

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

Conciseness3/5

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

The purpose is front-loaded and the scope is clear early, but the description is very long and packs in detailed confidence math, free-tier mechanics, token budgets, and legal caveats that are not all necessary for selecting or invoking the tool. It is structured but overstuffed.

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?

There is no output schema, yet the description explains the returned price fields, summary statistics, 404 behavior, Colorado-only coverage, refresh timing, and confidence semantics. For a complex, multi-parameter price lookup, this gives an agent enough context to call it correctly and interpret the response.

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%, and the schema itself documents all 13 parameters including enums and formats, so the baseline is 3. The description reinforces the available filters and nearest-first ordering, but it does not add substantial parameter-specific meaning beyond what the schema already provides.

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 opening states a specific resource and question: costs for a procedure at hospitals near a ZIP, including cash, gross, and insurer-negotiated rates for CPT, HCPCS, or MS-DRG codes. It narrows the scope to Colorado hospitals, which clearly distinguishes it from sibling tools focused on drugs, Medicare fee schedules, tax rates, or sanctions.

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?

The description gives clear applicability: Colorado-only coverage, filters for payer/plan/setting/billing class, nearest-first results, and 404 behavior when no hospital posts the code. It does not explicitly compare this tool with alternatives such as medicare_pfs_rate or drug pricing siblings, so it falls short of full alternative-routing 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.

Resources