Skip to main content
Glama

Compare a charge with Medicare's rate for one service

check_price
Read-onlyIdempotent

Compare a charge with Medicare's rate for one service. Needs code (from the bill) or q (the service in plain words); state and charged turn it into a comparison. For when someone asks whether a charge is high or what Medicare pays, for example "I was charged $450 for a 99213 office visit in Texas, is that too high?" or "what does Medicare pay for an MRI of the knee?". Takes the billing code if they have it, otherwise the service in plain words as q. Returns Medicare's 2026 rate for the state (or the city's own pricing area when city is given) in medicare_2026, the amount providers typically billed in 2024, and how many times the Medicare rate the charge is. For care in a hospital, hospital_facility_2026 gives Medicare's national rate for the hospital's own facility fee and comparison.compared_with says what the charge was set against. Dental work has no Medicare rate and returns 404 with a pointer to a free dental cost source.

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": "check_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoThe service in plain words, used when there is no code, like "knee MRI" or "ER visit".
cityNoCity, for states where Medicare pays big cities differently, like Houston, Chicago, Miami or Los Angeles. Other places use the rest-of-state rate.
codeNoFive-character CPT or HCPCS code from the bill, like 99213, 73721 or G0121.
stateNoUS state name or two-letter code, like Texas or TX. Med Bill Check is for US bills; a UK place gets a short answer pointing to UK sources.
chargedNoThe amount on the bill in US dollars, like 450.
settingNoSetting: office (clinic, office, imaging center) or facility (hospital or surgery center). Leave out to use the usual setting.
billed_byNoWhose bill the charge is on when the service was in a hospital: hospital (the hospital's own facility charge) or doctor (the doctor's or physician group's bill). Leave out if not known: the charge is then compared with both together.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / setting / description
      Previous value: -"office (clinic, office, imaging center) or facility (hospital or surgery center). Leave out to use the usual setting."New value: +"Setting: office (clinic, office, imaging center) or facility (hospital or surgery center). Leave out to use the usual setting."
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile needs no restating. The description nonetheless adds substantive behavior: it returns a 2026 Medicare rate, 2024 typical billed amounts, a multiple-of-Medicare ratio, a separate hospital facility rate, and a 404 with a pointer to a dental cost source for dental work. Those return behaviors and the error path go well beyond what the annotations convey.

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?

Purpose is front-loaded, parameters guidance follows, then return values and the dental edge case. Roughly 180 words is long but justified for a 7-parameter tool with no output schema; the two quoted example questions are slightly redundant with the preceding 'when someone asks' clause.

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?

No output schema exists, so the description carries the burden of explaining returns, and it names the key fields (medicare_2026, 2024 typical billed, ratio, hospital_facility_2026, comparison.compared_with) plus the dental 404 path and the non-US pointer. It is close to complete for this complexity, missing only detail on how ambiguous q matches or missing-amount cases are handled.

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?

With 100% schema description coverage, the schema already defines every parameter including both enums. The description adds a priority rule not in the schema — use code if available, otherwise q — and explains that state and charged convert input into a comparison, plus that city switches to the city pricing area and billed_by applied alone compares with both together. That is real added semantics, though much of the return-field overlap repeats the schema wording.

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 — comparing a charge against Medicare's rate for a single service — and the 'one service' scoping implicitly separates it from check_whole_bill-style siblings. An agent can tell exactly what question this answers.

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 clear use conditions with two concrete example questions ('is $450 for a 99213 in Texas too high?', 'what does Medicare pay for a knee MRI?') and a decision rule for code-vs-q. It does not name a sibling alternative or state when-not to use it, so it stops short of full routing guidance.

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.