Skip to main content
Glama

Hospital Pricing

get_hospital_pricing
Read-onlyIdempotent

U.S. care only, for users anywhere. For non-U.S. care, explain coverage without calling this tool or substituting U.S. prices. Get source-labeled Published MRF prices and Loa-reviewed provider price overlays for named hospitals and CPT codes. Cash is self-pay, list is the gross charge before discounts, and insurer rates are not personal out-of-pocket costs; missing prices are null.

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_ids": "<hospital_ids>",
      "cpt_codes": "<cpt_codes>"
    },
    "name": "get_hospital_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoService page offset; use returned next_offset with the same hospitals and codes.
cpt_codesYesCPT procedure codes to look up pricing for
price_limitNoObservations per service, default 3, maximum 5.
hospital_idsYesHospital IDs from search_hospitals results
price_offsetNoObservation offset within each service; narrow to one hospital/code and use next_price_offset for more rows.

Output Schema

NameRequiredDescriptionDefault
notesYes
totalYes
offsetYes
pricingYes
returnedYes
provenanceYes
next_offsetYes
services_foundYes
hospitals_foundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Service page offset; use returned next_offset with the same hospitals and codes.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / price_limit
      Added value: +{
      +  "description": "Observations per service, default 3, maximum 5.",
      +  "maximum": 5,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / price_offset
      Added value: +{
      +  "description": "Observation offset within each service; narrow to one hospital/code and use next_price_offset for more rows.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / next_offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / pricing / items / properties / caveats
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / pricing / items / properties / insurance_price_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / pricing / items / properties / next_price_offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / pricing / items / properties / price_catalog_url
      Added value: +{
      +  "format": "uri",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pricing / items / properties / price_offset
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / pricing / items / properties / published_price_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / pricing / items / properties / published_prices
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "caveats": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "component": {
      +        "type": "string"
      +      },
      +      "extracted_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "includes": {
      +        "type": "string"
      +      },
      +      "payer": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "plan": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "price": {
      +        "type": "number"
      +      },
      +      "price_kind": {
      +        "type": "string"
      +      },
      +      "reviewed_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "service_availability": {
      +        "const": "unknown",
      +        "type": "string"
      +      },
      +      "setting": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "source_date": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "source_label": {
      +        "type": "string"
      +      },
      +      "source_row_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "price",
      +      "price_kind",
      +      "payer",
      +      "plan",
      +      "includes",
      +      "component",
      +      "setting",
      +      "source_date",
      +      "service_availability",
      +      "extracted_at",
      +      "reviewed_at",
      +      "source_row_id",
      +      "source_label",
      +      "caveats"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / pricing / items / properties / summary_basis
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / pricing / items / required
      Previous value: -[
      -  "hospital_id",
      -  "hospital_name",
      -  "hospital_location",
      -  "cpt_code",
      -  "cpt_description",
      -  "cash_price",
      -  "cash_source_labels",
      -  "cash_includes",
      -  "list_price",
      -  "insurance_prices",
      -  "source_labels",
      -  "record_count",
      -  "loa_link"
      -]New value: +[
      +  "hospital_id",
      +  "hospital_name",
      +  "hospital_location",
      +  "cpt_code",
      +  "cpt_description",
      +  "cash_price",
      +  "published_price_count",
      +  "price_offset",
      +  "next_price_offset",
      +  "insurance_price_count",
      +  "price_catalog_url",
      +  "published_prices",
      +  "summary_basis",
      +  "caveats",
      +  "cash_source_labels",
      +  "cash_includes",
      +  "list_price",
      +  "insurance_prices",
      +  "source_labels",
      +  "record_count",
      +  "loa_link"
      +]
    • addedOutput schema / properties / returned
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "pricing",
      -  "total",
      -  "hospitals_found",
      -  "services_found",
      -  "provenance"
      -]New value: +[
      +  "pricing",
      +  "total",
      +  "returned",
      +  "offset",
      +  "next_offset",
      +  "notes",
      +  "hospitals_found",
      +  "services_found",
      +  "provenance"
      +]
  2. Changed4 schema fields changed
    • addedOutput schema / properties / pricing / items / properties / cash_includes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / pricing / items / properties / insurance_prices / items / properties / includes
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / pricing / items / properties / insurance_prices / items / required
      Previous value: -[
      -  "payer",
      -  "plan",
      -  "price",
      -  "source_label"
      -]New value: +[
      +  "includes",
      +  "payer",
      +  "plan",
      +  "price",
      +  "source_label"
      +]
    • changedOutput schema / properties / pricing / items / required
      Previous 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"
      -]New value: +[
      +  "hospital_id",
      +  "hospital_name",
      +  "hospital_location",
      +  "cpt_code",
      +  "cpt_description",
      +  "cash_price",
      +  "cash_source_labels",
      +  "cash_includes",
      +  "list_price",
      +  "insurance_prices",
      +  "source_labels",
      +  "record_count",
      +  "loa_link"
      +]
  3. Changed2 schema fields changed
    • changedOutput schema / properties / pricing / items / properties / loa_link / anyOf
      Previous value: -[
      -  {
      -    "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",
      -          "request",
      -          "website",
      -          "profile"
      -        ],
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      },
      -      "url": {
      -        "format": "uri",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "url",
      -      "action",
      -      "label"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Share this returned URL with its exact label. A website action redirects to the provider website; only a profile action opens a Loa listing. Do not infer the destination from the loacare.com domain.",
      +    "properties": {
      +      "action": {
      +        "enum": [
      +          "book",
      +          "request",
      +          "website",
      +          "profile"
      +        ],
      +        "type": "string"
      +      },
      +      "label": {
      +        "description": "Use this exact label as the link text; it identifies the destination.",
      +        "type": "string"
      +      },
      +      "url": {
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "url",
      +      "action",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / provenance / properties / source_url / description
      Added value: +"Supporting source link. A CMS Hospital Price Transparency policy page is not the hospital source file; do not attribute hospital-published prices to CMS."
  4. Changed1 schema field changed
    • changedOutput schema / properties / pricing / items / properties / loa_link / anyOf
      Previous value: -[
      -  {
      -    "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"
      -  }
      -]New value: +[
      +  {
      +    "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",
      +          "request",
      +          "website",
      +          "profile"
      +        ],
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "url",
      +      "action",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. 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"
      +]
  6. 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"
      +]
  7. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the description's job is interpretation, and it delivers: it labels price provenance (published MRF vs. Loa-reviewed overlay), defines cash as self-pay, list as gross charge before discounts, and warns that insurer rates are not personal out-of-pocket cost. It also states that missing prices come back as null, which prevents an agent from misreading gaps as errors.

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?

Scope is front-loaded and every sentence carries content: eligibility, sourcing, and price-semantics definitions. The opening 'U.S. care only, for users anywhere' is slightly compressed to the point of awkwardness, but no sentence is filler.

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?

An output schema exists, so return structure needn't be described; the description instead covers what the output means (source labels, charge definitions, null for missing). Combined with the eligibility rule, an agent has everything needed to decide whether to call and how to interpret results.

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%, including offset chaining and price_limit defaults, so the schema carries the parameter burden. The description only restates that lookups are keyed on named hospitals and CPT codes, adding no new syntax, format, or constraint information beyond what the schema already documents.

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 verb and resource: 'Get source-labeled Published MRF prices and Loa-reviewed provider price overlays for named hospitals and CPT codes.' The scope restriction ('U.S. care only') is explicit, but the description never distinguishes this from sibling pricing tools like get_market_pricing, get_pricing_estimate, or get_entity_prices, leaving the agent to infer which pricing tool fits.

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 a strong, explicit when-not condition: for non-U.S. care, explain coverage without calling this tool or substituting U.S. prices. What it lacks is positive routing among the several sibling pricing tools, so the agent knows the exclusion but not the alternative for U.S. market-level or estimate-style questions.

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.