Skip to main content
Glama

Draft a letter to a billing office for the user to send

draft_bill_letter
Read-onlyIdempotent

Draft a letter to a billing office for the user to send. For requests like "help me dispute this bill", "write a letter asking for an itemized bill", "can I ask for a discount?" or "how do I apply for charity care?". Returns a letter as plain text with [brackets] for anything not given, tips, and the user's No Surprises Act and Good Faith Estimate rights with official CMS links. It never sends anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoBilling code of the charge. With amount, a dispute letter adds Medicare's benchmark (for a hospital charge, the hospital outpatient rate as well as the doctor's part).
dateNoDate of service.
nameNoPatient or account holder name.
typeYesType: itemized (ask for an itemized bill), dispute (ask for a charge to be reviewed), discount (prompt-pay or self-pay discount), or assistance (financial assistance or charity care).
stateNoUS state, used for the benchmark in a dispute letter.
amountNoAmount charged or balance due, in US dollars.
reasonNoA sentence on what the user wants checked, for a dispute letter.
accountNoAccount or invoice number on the bill.
insuredNoSet to no if paying without insurance (self-pay), for a discount letter.
serviceNoThe service in plain words.
settingNoSetting: office or facility (hospital or surgery center), for the benchmark in a dispute letter. ER visits and hospital clinic visits count as facility anyway.
providerNoHospital, clinic or provider name.
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. Changed3 schema fields changed
    • changedInput schema / properties / insured / description
      Previous value: -"no if paying without insurance (self-pay), for a discount letter."New value: +"Set to no if paying without insurance (self-pay), for a discount letter."
    • changedInput schema / properties / setting / description
      Previous value: -"office or facility (hospital or surgery center), for the benchmark in a dispute letter. ER visits and hospital clinic visits count as facility anyway."New value: +"Setting: office or facility (hospital or surgery center), for the benchmark in a dispute letter. ER visits and hospital clinic visits count as facility anyway."
    • changedInput schema / properties / type / description
      Previous value: -"itemized (ask for an itemized bill), dispute (ask for a charge to be reviewed), discount (prompt-pay or self-pay discount), or assistance (financial assistance or charity care)."New value: +"Type: itemized (ask for an itemized bill), dispute (ask for a charge to be reviewed), discount (prompt-pay or self-pay discount), or assistance (financial assistance or charity care)."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: it discloses exactly what is returned (plain text with [brackets] for missing values, tips, and No Surprises Act / Good Faith Estimate rights with CMS links) and closes with 'It never sends anything', which is a valuable reinforcement of the read-only contract.

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?

The key fact — draft a letter, never sent — leads the description, and the second sentence earns its length by covering both trigger examples and return content. It is slightly dense but has no filler sentences.

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 13-parameter generator with no output schema, the description covers the essentials: what it produces, how placeholders are marked, and that it is non-sending. The remaining detail (benchmark computation, enum behaviors) lives in a fully annotated schema, so nothing critical is missing.

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?

Schema description coverage is 100% across 13 parameters, and the enum values, units, and conditional logic (e.g. code+amount adds the Medicare benchmark, billed_by defaults to comparing both) are all documented in the schema itself. The description maps user phrasings to the four 'type' values but adds nothing beyond what the schema already states, so the baseline of 3 applies.

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 names a specific verb and resource ('Draft a letter to a billing office') and grounds it in four concrete user intents ('help me dispute this bill', 'write a letter asking for an itemized bill', etc.). None of the siblings (check_price, check_whole_bill, look_up_hospital, search_services) generate letters, so the boundary is unambiguous.

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?

The quoted request examples make the triggering condition clear — the tool is for users who want to communicate with a billing office rather than look up prices or bills. It stops short of explicitly naming when to prefer a sibling or what to do if the request is purely informational, so it is strong context without formal exclusions.

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.