Get the dispute letter and phone script
get_case_outputsGet 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
| Name | Required | Description | Default |
|---|---|---|---|
| case_id | Yes | The case id returned by check_medical_bill (it starts with `case_`). | |
| include_pdf | No | Also return the letter as a print-ready PDF (base64). One page where it fits, addressed for a #10 window envelope, with fold marks. | |
| letter_date | No | The 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_name | Yes | As it should appear on the letter. | |
| account_number | No | 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. | |
| reply_to_lines | No | Where the provider should write back. | |
| provider_address_lines | No | 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. |