Skip to main content
Glama

Hospital Pricing

get_hospital_pricing
Read-onlyIdempotent

Hospital-specific pricing tool for source-labeled Loa runtime data. Returns source-labeled Published MRF prices and Loa Verified Provider Price overlays for CPT codes. cash_price is the cash/self-pay price, list_price is the gross charge before discounts (most patients pay less), and insurance_prices are payer-negotiated rates for the named plan, not out-of-pocket costs. Any of these can be null when the hospital did not publish that price. Use this when comparing named hospitals or checking a quoted hospital price against available source rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpt_codesYesCPT procedure codes to look up pricing for
hospital_idsYesHospital IDs from search_hospitals results

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYes
pricingYes
provenanceYes
services_foundYes
hospitals_foundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / pricing / items / properties / list_price
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / pricing / items / required
      Previous value: -[
      -  "hospital_id",
      -  "hospital_name",
      -  "hospital_location",
      -  "cpt_code",
      -  "cpt_description",
      -  "cash_price",
      -  "cash_source_labels",
      -  "insurance_prices",
      -  "source_labels",
      -  "record_count",
      -  "loa_link"
      -]New value: +[
      +  "hospital_id",
      +  "hospital_name",
      +  "hospital_location",
      +  "cpt_code",
      +  "cpt_description",
      +  "cash_price",
      +  "cash_source_labels",
      +  "list_price",
      +  "insurance_prices",
      +  "source_labels",
      +  "record_count",
      +  "loa_link"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / pricing / items / properties / loa_link
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "Tracked Loa link. Share it when the user wants to book, contact, or learn more about this provider or hospital.",
      +      "properties": {
      +        "action": {
      +          "enum": [
      +            "book",
      +            "website",
      +            "profile"
      +          ],
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url",
      +        "action",
      +        "label"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / pricing / items / required
      Previous value: -[
      -  "hospital_id",
      -  "hospital_name",
      -  "hospital_location",
      -  "cpt_code",
      -  "cpt_description",
      -  "cash_price",
      -  "cash_source_labels",
      -  "insurance_prices",
      -  "source_labels",
      -  "record_count"
      -]New value: +[
      +  "hospital_id",
      +  "hospital_name",
      +  "hospital_location",
      +  "cpt_code",
      +  "cpt_description",
      +  "cash_price",
      +  "cash_source_labels",
      +  "insurance_prices",
      +  "source_labels",
      +  "record_count",
      +  "loa_link"
      +]
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavioral context: that any price field can be null when unpublished and that insurance_prices are negotiated rates rather than out-of-pocket costs. This is meaningful interpretive guidance beyond the annotations, though return format/pagination is left to the output schema.

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?

It is front-loaded (purpose first, then field semantics, then usage) and every sentence carries information an agent needs, especially the null caveat. The middle field-glossary sentence is dense but earns its place by preventing misinterpretation of the price fields.

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 an output schema present and annotations covering safety, the description need not restate return structure; it complements those by explaining field meaning, nullability, and intended use. It is complete enough to call correctly, missing only explicit sibling routing for non-hospital pricing queries.

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% for both parameters, so the schema already documents cpt_codes and hospital_ids (including array bounds and the search_hospitals provenance). The description adds no syntax, limits, or format detail beyond the schema, which is the expected baseline when schema coverage is complete.

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 resource (hospital pricing) and what it returns (source-labeled Published MRF prices plus Loa Verified Provider Price overlays for CPT codes), which distinguishes it from generic siblings like get_entity_prices and get_market_pricing. The internal jargon ('Loa runtime data', 'MRF') is opaque but the hospital scope is unmistakable.

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 an explicit when-to-use clause: 'comparing named hospitals or checking a quoted hospital price against available source rows.' It does not state when NOT to use it or name the sibling to prefer for market-level or estimate queries, so the routing is clear but not exhaustive.

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.