Skip to main content
Glama

Get a hospital's published price

get_hospital_prices
Read-onlyIdempotent

Gets a hospital's published price for a service, such as a head CT, chest X-ray, knee MRI, colonoscopy or knee replacement, or for a CPT code. Takes the hospital's CCN, or its name with a two-letter state, and an optional insurer. Returns the cash price and insurer rates as published in the hospital's own price file, with the file and its read date. A price is not a personal quote, is not checked against a plan network and is not the total cost of care. OpenHealth does not show a file read more than 30 days ago.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_hospital_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccnNoThe hospital's six-character CMS Certification Number (CCN), such as 360006.
stateNoA two-letter US state code, such as OH. A hospital name needs this code.
insurerNoOne insurer to check, using one of the listed ids, such as aetna or medicare.
serviceNoThe service or procedure, as one of the listed ids, such as head-ct-without-contrast or knee-replacement.
cpt_codeNoA five-character CPT or HCPCS code, such as 70450. Use it when no service id fits.
hospitalNoThe hospital's name, such as Riverside Methodist Hospital. Use it with state when you have no CCN.

Output Schema

NameRequiredDescriptionDefault
dataNo
notesNo
statusYes
sourcesNo
page_urlNo
release_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), and the description still adds real substance: what is returned (cash price plus insurer rates, with source file and read date), what the number is not (not a personal quote, not network-checked, not total cost of care), and a data-coverage limit (files older than 30 days are not shown). That is exactly the kind of context annotations cannot convey.

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?

Three sentences, front-loaded with the action and supported inputs, followed by the return shape and then the caveats. Every clause carries information an agent needs; nothing is padding or restatement of the name.

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, the description need not detail return values, yet it usefully summarizes them and adds the 30-day staleness rule and the interpretation caveats. The only meaningful gap is that with zero required parameters it does not state what an empty or partial argument set does (e.g., hospital name without state).

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 earns an extra point by tying the parameters together into two identification strategies (CCN alone, or hospital name plus two-letter state) with insurer as optional, which the schema documents only field by field. It does not address the notable fact that no parameter is required or what happens when none are supplied.

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 ('Gets a hospital's published price for a service ... or for a CPT code') and enumerates concrete examples (head CT, chest X-ray, knee MRI, colonoscopy, knee replacement). It is plainly distinct from siblings like get_hospital (entity lookup) or list_procedures (catalog), so an agent can select it without opening the schema.

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

Usage Guidelines3/5

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

The description gives identification guidance ('Takes the hospital's CCN, or its name with a two-letter state, and an optional insurer') and a freshness constraint (files read more than 30 days ago are hidden). However, it never says when to prefer this over a sibling such as get_hospital or list_procedures, nor how to discover valid service ids, leaving the when-to-use decision implied.

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