Skip to main content
Glama

Market Pricing

get_market_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. Benchmark statewide or national cash, list, and insurer prices; each hospital counts once. Lead with median and p25–p75, report limitations, and never fill insufficient_data gaps. These are not ZIP-local quotes or personal out-of-pocket costs.

Input Schema

NameRequiredDescriptionDefault
stateNoState for regional pricing (e.g. "CA", "New York"). Unknown states return McpToolInvalidInput. When fewer than 5 hospitals in the state published a price, national figures are returned with a limitation.
zip_codeNoZIP code, used only to pick the state when state is omitted
cpt_codesYesCPT codes to look up (e.g. ["99213", "93000"])

Output Schema

NameRequiredDescriptionDefault
stateYes
pricingYes
provenanceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / pricing / items / properties / procedure_name
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / pricing / items / required
      Previous value: -[
      -  "cpt_code",
      -  "status",
      -  "scope",
      -  "cash_price",
      -  "list_price",
      -  "insurance_price",
      -  "insurance_by_payer",
      -  "confidence",
      -  "cash_data_points",
      -  "insurance_data_points",
      -  "states_covered",
      -  "source_dates",
      -  "limitations"
      -]New value: +[
      +  "cpt_code",
      +  "procedure_name",
      +  "status",
      +  "scope",
      +  "cash_price",
      +  "list_price",
      +  "insurance_price",
      +  "insurance_by_payer",
      +  "confidence",
      +  "cash_data_points",
      +  "insurance_data_points",
      +  "states_covered",
      +  "source_dates",
      +  "limitations"
      +]
  2. Changed1 schema field changed
    • 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."
  3. Changed12 schema fields changed
    • changedInput schema / properties / state / description
      Previous value: -"State for regional pricing (e.g. \"CA\", \"New York\"). Unknown states return McpToolInvalidInput. Valid states with no regional data fall back to national averages."New value: +"State for regional pricing (e.g. \"CA\", \"New York\"). Unknown states return McpToolInvalidInput. When fewer than 5 hospitals in the state published a price, national figures are returned with a limitation."
    • changedInput schema / properties / zip_code / description
      Previous value: -"ZIP code (used with state for location context)"New value: +"ZIP code, used only to pick the state when state is omitted"
    • changedOutput schema / properties / pricing / items / properties / cash_price / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "average": {
      -        "type": "number"
      -      },
      -      "data_points": {
      -        "type": "number"
      -      },
      -      "max": {
      -        "type": "number"
      -      },
      -      "median": {
      -        "type": "number"
      -      },
      -      "min": {
      -        "type": "number"
      -      },
      -      "source": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "median",
      -      "average",
      -      "min",
      -      "max",
      -      "data_points",
      -      "source"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "average": {
      +        "type": "number"
      +      },
      +      "data_points": {
      +        "description": "Price records behind this figure",
      +        "type": "number"
      +      },
      +      "hospital_count": {
      +        "description": "Hospitals behind this figure; each counts once",
      +        "type": "number"
      +      },
      +      "max": {
      +        "type": "number"
      +      },
      +      "median": {
      +        "type": "number"
      +      },
      +      "min": {
      +        "type": "number"
      +      },
      +      "p25": {
      +        "type": "number"
      +      },
      +      "p75": {
      +        "type": "number"
      +      },
      +      "source": {
      +        "enum": [
      +          "state",
      +          "national"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "median",
      +      "average",
      +      "min",
      +      "max",
      +      "p25",
      +      "p75",
      +      "data_points",
      +      "hospital_count",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / pricing / items / properties / insurance_by_payer
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data_points": {
      +        "type": "number"
      +      },
      +      "hospital_count": {
      +        "type": "number"
      +      },
      +      "median": {
      +        "type": "number"
      +      },
      +      "p25": {
      +        "type": "number"
      +      },
      +      "p75": {
      +        "type": "number"
      +      },
      +      "payer": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "payer",
      +      "median",
      +      "p25",
      +      "p75",
      +      "data_points",
      +      "hospital_count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / pricing / items / properties / insurance_price / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "average": {
      -        "type": "number"
      -      },
      -      "data_points": {
      -        "type": "number"
      -      },
      -      "max": {
      -        "type": "number"
      -      },
      -      "median": {
      -        "type": "number"
      -      },
      -      "min": {
      -        "type": "number"
      -      },
      -      "source": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "median",
      -      "average",
      -      "min",
      -      "max",
      -      "data_points",
      -      "source"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "average": {
      +        "type": "number"
      +      },
      +      "data_points": {
      +        "description": "Price records behind this figure",
      +        "type": "number"
      +      },
      +      "hospital_count": {
      +        "description": "Hospitals behind this figure; each counts once",
      +        "type": "number"
      +      },
      +      "max": {
      +        "type": "number"
      +      },
      +      "median": {
      +        "type": "number"
      +      },
      +      "min": {
      +        "type": "number"
      +      },
      +      "p25": {
      +        "type": "number"
      +      },
      +      "p75": {
      +        "type": "number"
      +      },
      +      "source": {
      +        "enum": [
      +          "state",
      +          "national"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "median",
      +      "average",
      +      "min",
      +      "max",
      +      "p25",
      +      "p75",
      +      "data_points",
      +      "hospital_count",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / pricing / items / properties / limitations
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / pricing / items / properties / list_price
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "average": {
      +          "type": "number"
      +        },
      +        "data_points": {
      +          "description": "Price records behind this figure",
      +          "type": "number"
      +        },
      +        "hospital_count": {
      +          "description": "Hospitals behind this figure; each counts once",
      +          "type": "number"
      +        },
      +        "max": {
      +          "type": "number"
      +        },
      +        "median": {
      +          "type": "number"
      +        },
      +        "min": {
      +          "type": "number"
      +        },
      +        "p25": {
      +          "type": "number"
      +        },
      +        "p75": {
      +          "type": "number"
      +        },
      +        "source": {
      +          "enum": [
      +            "state",
      +            "national"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "median",
      +        "average",
      +        "min",
      +        "max",
      +        "p25",
      +        "p75",
      +        "data_points",
      +        "hospital_count",
      +        "source"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / pricing / items / properties / scope
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "state",
      +        "national"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / pricing / items / properties / source_dates
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "earliest": {
      +          "type": "string"
      +        },
      +        "latest": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "earliest",
      +        "latest"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Extraction dates of the underlying hospital files (YYYY-MM-DD)"
      +}
    • addedOutput schema / properties / pricing / items / properties / states_covered
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / pricing / items / properties / status
      Added value: +{
      +  "enum": [
      +    "ok",
      +    "insufficient_data"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / pricing / items / required
      Previous value: -[
      -  "cpt_code",
      -  "cash_price",
      -  "insurance_price",
      -  "confidence",
      -  "cash_data_points",
      -  "insurance_data_points"
      -]New value: +[
      +  "cpt_code",
      +  "status",
      +  "scope",
      +  "cash_price",
      +  "list_price",
      +  "insurance_price",
      +  "insurance_by_payer",
      +  "confidence",
      +  "cash_data_points",
      +  "insurance_data_points",
      +  "states_covered",
      +  "source_dates",
      +  "limitations"
      +]
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them by disclosing geographic eligibility limits, the fallback to national figures implied by the limitation language, de-duplication of hospitals, and a strict prohibition on fabricating values for insufficient_data gaps. These are behavioral constraints an agent cannot infer from annotations or schema.

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?

Four tight sentences: eligibility and exclusion first, then the benchmark scope, then aggregation and reporting rules. Every clause carries operational content — no restatement of the name or title.

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?

With an output schema and safety annotations already present, the description supplies exactly the missing pieces: geographic scope, aggregation semantics, statistical reporting expectations, and the insufficient-data policy. Nothing needed to call it correctly is absent.

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 state fallback behavior, ZIP-as-state-selector, and the CPT array bounds are already documented. The description adds only the eligibility framing (U.S. only) around those parameters rather than new syntax or format meaning, so the baseline 3 applies.

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?

States a specific verb and resource — benchmark statewide or national cash, list, and insurer prices — and scopes it to U.S. care. It also rules out what it is not (ZIP-local quotes, personal out-of-pocket costs), which implicitly separates it from compare_local_prices and get_pricing_estimate without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when/when-not: U.S. care only, and for non-U.S. care the agent should explain coverage without calling this tool or substituting U.S. prices. It also specifies the aggregation rule (each hospital counts once) and the reporting protocol (lead with median and p25–p75, report limitations, never fill insufficient_data gaps).

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.