Skip to main content
Glama

FindMyDirectDoctor Healthcare Access

hospital_prices

Read-only

US hospital cash and negotiated prices for medical procedures: search hospitals by procedure, price statistics, check a price quote, and the list of procedure codes. Set intent, then pass that intent's arguments. Each call costs the price of its intent in USDC (x402), only when it succeeds.

  • search ($0.03): Find posted hospital self-pay (cash) prices for a service near a location, cheapest first. Arguments: code, service, zip, lat, lng, city, state, radius_miles, sort, limit, cursor, format.

  • stats ($0.02): Statistics of posted hospital cash prices for one service in a state or nationwide. Arguments: code, service, state, national.

  • check ($0.05): Compare a hospital price quote with posted cash prices nearby, with a neutral label and plain next steps. Arguments: code, service, quoted_price, zip, lat, lng, city, state. Required: quoted_price.

  • codes ($0.01): The dictionary of 28 hospital services with billing codes, plain names and everyday words. Arguments: q, category, format.

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

Input Schema

NameRequiredDescriptionDefault
qNoPlain words to look up, for example brain mri without contrast. Returns the best code and close alternatives.
latNoLatitude in decimal degrees. Used together with lng.
lngNoLongitude in decimal degrees. Used together with lat.
zipNo5-digit US ZIP code. A location is given as zip, or lat with lng, or city with state.
cityNoCity name. Used together with state.
codeNoCPT or HCPCS billing code of one of the 28 supported services, for example 70551 (brain MRI, no contrast). Give code or service, not both. GET /v1/hospital-prices/codes lists them.
sortNoprice = lowest cash price first. distance = nearest first.
limitNoResults per page (default 10, maximum 25).
stateNo2-letter US state code. Used together with city.
cursorNoOpaque value from next_cursor of the previous response, to fetch the next page with the same other parameters.
formatNoconcise = key fields. detailed = every field.
intentYesWhich lookup to run. Each intent has its own price, listed in the tool description.
serviceNoThe service in plain words, for example brain MRI without contrast. The free dictionary resolves it to a code, and the response shows the resolved code and close alternatives.
categoryNoOnly services in this category.
nationalNotrue for nationwide statistics. Give state or national=true, not both.
quoted_priceNoThe price quoted for the service, in US dollars.
radius_milesNoSearch radius in miles (default 50, maximum 150). A larger value is lowered to the maximum.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the read-only, closed-world safety profile, and the description adds genuinely non-redundant behavior: per-intent USDC pricing under x402, billed only on success, plus default ordering ("cheapest first") and the cursor-based paging model. What is missing is failure behavior (what happens on an unsupported code or an unbilled failure) and any rate-limit context.

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?

Front-loaded with a single purpose sentence followed by one clearly delimited line per intent, carrying cost, action and arguments in a fixed order. Dense but every element is load-bearing; a small amount of redundancy exists between the intent argument lists and the fully documented schema.

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?

For a 17-parameter, four-mode dispatcher with no output schema, the definition covers the intent model, cost implications, required fields and sorting defaults, which is what an agent needs to invoke it correctly. It would be stronger if it sketched the shape of each intent's response, particularly for check, which only abstractly mentions a "neutral label and plain next steps".

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 description coverage is 100%, so the baseline is 3; the description exceeds it by partitioning the 17 shared parameters across the four intents, which the flat schema cannot express. That routing information is the main thing an agent needs and cannot get from the schema alone. Minor friction: the phrase "the free dictionary" for service resolution reads as contradictory against the $0.01 codes intent.

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 description opens with a concrete verb-and-resource statement ("US hospital cash and negotiated prices for medical procedures") and then enumerates all four operations (search, stats, check, codes) with a one-line definition of each. An agent can determine exactly which capability it needs without opening the schema, and the multi-intent dispatch model is spelled out up front.

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?

Each intent is given an explicit selection rule: search for nearby cheapest cash prices, stats for state or nationwide aggregates, check to compare a specific quote, codes to resolve a service name to a billing code. It also states the dispatch contract ("Set intent, then pass that intent's arguments") and marks required fields ("Required: quoted_price"). It stops short of naming sibling tools to defer to, so it lands at 4 rather than 5.

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