Skip to main content
Glama

Get the dispute letter and phone script

get_case_outputs
Read-onlyIdempotent

Get the dispute letter and the phone script for an unlocked case. The letter is a template the patient sends in their own name.

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": {
      "case_id": "<case_id>",
      "patient_name": "<patient_name>"
    },
    "name": "get_case_outputs"
  }
}

Input Schema

NameRequiredDescriptionDefault
case_idYesThe case id returned by check_medical_bill (it starts with `case_`).
include_pdfNoAlso return the letter as a print-ready PDF (base64). One page where it fits, addressed for a #10 window envelope, with fold marks.
letter_dateNoThe date to print on the letter, as MM/DD/YYYY. Send the USER's local date: the server runs in UTC, so without this a patient in a western timezone can be handed a letter dated tomorrow, and it is the date the 30-day response window is counted from. Omit it to use the server's date.
patient_nameYesAs it should appear on the letter.
account_numberNoThe patient's account number with the provider, used in the letter, the phone script and the portal message. Optional: when it is omitted or blank, the number read off the bill is used.
reply_to_linesNoWhere the provider should write back.
provider_address_linesNoThe provider's billing address as printed on the statement, one line per entry: a street or PO box line, then town, state and ZIP. It becomes the recipient block under the provider's name. Nothing in the product reads an address off the documents, so with fewer than two lines the response has mailable: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / account_number / description
      Added value: +"The patient's account number with the provider, used in the letter, the phone script and the portal message. Optional: when it is omitted or blank, the number read off the bill is used."
    • addedInput schema / properties / case_id / description
      Added value: +"The case id returned by check_medical_bill (it starts with `case_`)."
    • addedInput schema / properties / provider_address_lines / description
      Added value: +"The provider's billing address as printed on the statement, one line per entry: a street or PO box line, then town, state and ZIP. It becomes the recipient block under the provider's name. Nothing in the product reads an address off the documents, so with fewer than two lines the response has mailable: false."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds one useful behavioral fact — the letter is a patient-authored template, not something sent by the service — but omits other notable behaviors the schema knows about, such as mailable:false when the provider address is under two lines.

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?

Two tight sentences with the resource and the precondition front-loaded and zero filler. The second sentence earns its place by clarifying authorship of the letter, though it says nothing about the phone script half of the return.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a seven-parameter tool with no output schema, the description is thin: it never indicates that the response also carries a phone script payload, the mailable flag, or optional PDF content. The rich schema compensates for parameter detail, but the shape of the result is left for the agent to discover.

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%, so the baseline is 3; the schema already explains case_id origin, letter_date timezone reasoning, include_pdf output format and the reply_to/provider_address_lines constraints. The description adds no parameter-level meaning beyond what the schema supplies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and two concrete resources — the dispute letter and the phone script — and adds the qualifier 'for an unlocked case', which conveys a precondition. It implicitly contrasts with unlock_case but does not name any sibling explicitly, so it falls short of the top mark.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'for an unlocked case' hints that unlock_case is a prerequisite, but the guidance is implied rather than stated. There is no explicit when-to-use vs when-not-to-use framing and no named alternative such as get_case or export_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