Skip to main content
Glama

Check a medical bill

check_medical_bill

Compare a medical bill against the Explanation of Benefits the patient’s insurer issued for the same care, and report where the two disagree. Use when someone shares a medical bill, hospital statement, doctor bill, lab bill or EOB and asks whether it is correct, what they actually owe, or how to dispute it. The bill is required; the EOB is strongly recommended and is what makes most of the checks possible. If you can see the documents but cannot attach their bytes, transcribe them into bill and eobs exactly as printed. Free: returns a summary and the title of every finding, but not the detail behind them.

Input Schema

NameRequiredDescriptionDefault
eobNoA single Explanation of Benefits, already transcribed.
billNoThe bill already transcribed into structured form. Prefer `bill_document` when you can send the file itself or a link to it: the transcription is then done by a reader tuned for these forms and checked against a field-accuracy harness. Use this field when you can READ the bill but cannot send its bytes — for example, an assistant looking at a file the patient attached to the conversation. Copy what is printed: money and dates as the strings on the page ("$1,204.37", "03/14/2026"), every line, and nothing that is not there. File contents belong in `bill_document`.
eobsNoEvery Explanation of Benefits covering this bill, already transcribed. Use this rather than `eob` whenever there is more than one — a hospital statement usually spans several claims and each claim has its own EOB. Charges on a date that no EOB supplied covers are not compared: the response names those dates and the check is partial.
labelNoA short human label for this case.
eob_documentNoThe Explanation of Benefits as a file, read for you. It usually sits behind the insurer’s login, which is what `upload_id` is for. When the bill covers more than one visit or claim there is usually one EOB per claim: send the rest in `eob_documents`. Send it one of three ways: `data_base64` if you have the bytes; `upload_id` if the patient has to fetch the file themselves — reserve a slot with `POST /v1/uploads` and PUT the file there first; `url` if you only have a public https link. Send exactly one; if more than one is present, `data_base64` wins, then `upload_id`, then `url`. None of them is a promise the file is readable; that is decided from the bytes after they arrive.
bill_documentNoThe bill as a file, read for you. Use this when you have the document itself — a photo, a scan, or a PDF from the provider’s portal. Send it one of three ways: `data_base64` if you have the bytes; `upload_id` if the patient has to fetch the file themselves — reserve a slot with `POST /v1/uploads` and PUT the file there first; `url` if you only have a public https link. Send exactly one; if more than one is present, `data_base64` wins, then `upload_id`, then `url`. None of them is a promise the file is readable; that is decided from the bytes after they arrive.
eob_documentsNoMore Explanation of Benefits files for the same bill, one per claim, each sent any of the three ways `eob_document` is. Added to `eob_document`, not instead of it; the same file twice is read once. Up to 4 in all. Each is read separately, so each adds to the time the check takes. Charges on a date that no EOB sent covers are not compared: the response names those dates and the check is partial.
good_faith_estimateNoThe total on the written Good Faith Estimate the provider gave the patient before the care, as printed — "$1,204.37". Needed for the self-pay check: under the No Surprises Act a self-pay bill that comes in $400 or more above the written estimate can be disputed through the federal patient-provider dispute resolution process, and that check cannot run without this figure. Leave it out if there was no written estimate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / eob_document / description
      Previous value: -"The Explanation of Benefits as a file, read for you. It usually sits behind the insurer’s login, which is what `upload_id` is for. Send it one of three ways: `data_base64` if you have the bytes; `upload_id` if the patient has to fetch the file themselves — reserve a slot with `POST /v1/uploads` and PUT the file there first; `url` if you only have a public https link. Send exactly one; if more than one is present, `data_base64` wins, then `upload_id`, then `url`. None of them is a promise the file is readable; that is decided from the bytes after they arrive."New value: +"The Explanation of Benefits as a file, read for you. It usually sits behind the insurer’s login, which is what `upload_id` is for. When the bill covers more than one visit or claim there is usually one EOB per claim: send the rest in `eob_documents`. Send it one of three ways: `data_base64` if you have the bytes; `upload_id` if the patient has to fetch the file themselves — reserve a slot with `POST /v1/uploads` and PUT the file there first; `url` if you only have a public https link. Send exactly one; if more than one is present, `data_base64` wins, then `upload_id`, then `url`. None of them is a promise the file is readable; that is decided from the bytes after they arrive."
    • addedInput schema / properties / eob_documents
      Added value: +{
      +  "description": "More Explanation of Benefits files for the same bill, one per claim, each sent any of the three ways `eob_document` is. Added to `eob_document`, not instead of it; the same file twice is read once. Up to 4 in all. Each is read separately, so each adds to the time the check takes. Charges on a date that no EOB sent covers are not compared: the response names those dates and the check is partial.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "data_base64"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "url"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "upload_id"
      +        ]
      +      }
      +    ],
      +    "description": "A document. Send it one of three ways: `data_base64` if you have the bytes; `upload_id` if the patient has to fetch the file themselves — reserve a slot with `POST /v1/uploads` and PUT the file there first; `url` if you only have a public https link. Send exactly one; if more than one is present, `data_base64` wins, then `upload_id`, then `url`. None of them is a promise the file is readable; that is decided from the bytes after they arrive.",
      +    "properties": {
      +      "data_base64": {
      +        "description": "The file itself, base64-encoded. PDF, JPEG, PNG or WebP. The media type is read from the bytes rather than taken on trust, so it does not need to be declared — and a request claiming \"application/pdf\" over a JPEG would otherwise reach the reader as the wrong kind of thing.",
      +        "type": "string"
      +      },
      +      "filename": {
      +        "description": "Optional, for your own logs. Not used.",
      +        "type": "string"
      +      },
      +      "upload_id": {
      +        "description": "A slot from `POST /v1/uploads` that the file has already been PUT into. Use this when you can neither attach the bytes nor give a link this service can follow — above all for an Explanation of Benefits inside an insurer portal, where the patient has to sign in and download it themselves. The id is good for one file and 15 minutes, and the bytes are held in memory only.",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "An https link to the file, which this service retrieves. Use it when you have a link rather than the bytes. Must be https and must resolve to a public address: links to private, loopback or link-local addresses are refused, including after a redirect, and so are links carrying credentials. At most 3 redirects, 12 MB, 20 seconds. A link behind a login will not work — this service sends no cookies and no credentials of any kind — so for an Explanation of Benefits inside an insurer portal, the patient has to download it and send the bytes.",
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
    • changedInput schema / properties / eobs / description
      Previous value: -"Every Explanation of Benefits covering this bill, already transcribed. Use this rather than `eob` whenever there is more than one — a hospital statement usually spans several claims and each claim has its own EOB. Supplying only one of them leaves the rest of the bill looking unmatched, which produces findings about charges the plan did in fact process."New value: +"Every Explanation of Benefits covering this bill, already transcribed. Use this rather than `eob` whenever there is more than one — a hospital statement usually spans several claims and each claim has its own EOB. Charges on a date that no EOB supplied covers are not compared: the response names those dates and the check is partial."
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

The annotations declare readOnlyHint=false and destructiveHint=false, which already tells the agent this is a non-destructive but non-read operation, so the bar for added context is lower. The description does add real value by disclosing the partial-check behavior (dates not covered by an EOB are not compared) and the free-tier output shape (summary and finding titles but not the detail). However, it never says what the paid/tiered path requires, whether there are rate limits, or what the run actually costs in time beyond a vague mention in the 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?

Five sentences, front-loaded with purpose, then trigger conditions, then the required/recommended split, then the transcription fallback, then the free-tier caveat. No sentence is redundant and nothing is buried ahead of the core purpose.

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 complex, deeply nested 8-parameter tool with no output schema, the description covers the essential call-shape decisions and even sketches the free-tier return. The remaining gap is that it gestures at a richer paid output ('not the detail behind them') without saying how the agent gets that detail, which leaves one loose end for an agent planning the workflow.

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 schema already carries the field-level semantics and the baseline is 3. The description goes beyond it by explaining the operational distinction between the two bill paths: prefer the document, and only transcribe into `bill`/`eobs` 'exactly as printed' when the bytes cannot be attached. It also flags the EOB as the enabling input for most checks, which is semantic guidance not present in the parameter list itself.

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 first sentence gives a specific verb and two specific resources — 'Compare a medical bill against the Explanation of Benefits the patient's insurer issued for the same care, and report where the two disagree.' That is a precise, falsifiable statement of what the tool returns, and it is unmistakably distinct from the case-management siblings (get_case, export_case, delete_case).

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?

It names the trigger conditions concretely ('someone shares a medical bill, hospital statement, doctor bill, lab bill or EOB and asks whether it is correct, what they actually owe, or how to dispute it'), then states the input requirements: the bill is required, the EOB is 'strongly recommended and is what makes most of the checks possible.' It even supplies the fallback path when bytes cannot be attached, so the agent knows what to do in the degraded case.

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