Skip to main content
Glama

compare_bill_amount

Read-only

Compares one dollar amount from a medical bill or explanation of benefits with the typical allowed-amount range (low, median, high) for the same procedure in the same US state, and says whether it is below, within or above that range, with questions worth asking the billing office. Pass amount_type 'billed' for the charge on the bill or 'allowed' for the insurer's allowed amount. Billed charges are usually higher than allowed amounts, so a high billed charge alone is not an error. Needs only the procedure, state and amount; do not send names, dates, account or member numbers.

Input Schema

NameRequiredDescriptionDefault
stateYes2-letter US state code, e.g. 'TX'
amountYesThe dollar amount from the bill or EOB
procedureYesProcedure slug or plain name, e.g. 'colonoscopy'. Resolve plain names with resolve_procedure.
amount_typeYes'billed' = the charge on the bill; 'allowed' = the amount the insurer allowed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description goes further by disclosing the output content (below/within/above plus questions to ask the billing office), which matters because no output schema exists, and by flagging the interpretive trap that a high billed charge alone is not an error. It also states the privacy boundary (do not send names, dates, account or member numbers), adding real behavioral value beyond the annotations.

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, each earning its place: the first defines the operation and its output, the second disambiguates the critical amount_type parameter, the third covers the domain caveat and the privacy constraint. Front-loaded with the core purpose and free of filler.

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?

For a 4-required-param, no-output-schema tool, the description covers what is compared, what the result conveys, how to choose the enum, what inputs are needed, and what must not be sent. There are no material gaps an agent would need filled before calling it correctly.

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 adds genuine domain meaning on top of the schema by explaining the semantic difference between 'billed' and 'allowed' and the usual relationship between them, which helps the agent choose the right enum value rather than merely echoing the field descriptions.

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: compares one dollar amount from a bill/EOB against the typical allowed-amount range (low, median, high) for the same procedure in the same state, and classifies it as below/within/above. This is clearly distinguishable from siblings like estimate_procedure_cost or calculate_liability, which produce cost estimates rather than range comparisons.

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 in-tool guidance: pass amount_type 'billed' for the bill charge or 'allowed' for the insurer's allowed amount, and 'Needs only the procedure, state and amount'. It also warns that billed charges are usually higher than allowed amounts. It stops short of naming an alternative tool or an explicit when-not-to-use condition, so it falls just under the top tier.

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.