send_text_letter
Mail a letter written as plain text, for letters composed in chat. mailbox.bot sets the text exactly as given on US Letter pages (Times 12 pt, 1-inch margins; no letterhead, logo or signature image) and submits it through the same outbound mail service, so the same scopes, approval, cost caps and proof apply and staff print and mail it. dry_run: true returns the exact cost without sending; with a live key this spends the account owner's prepaid credits, and a key that requires approval holds the letter until the owner approves it in the dashboard. Requires the current mailbox_md_version. Up to 15,000 characters of Latin text; plain text only, with no PDF, letterhead or images.
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": {
"letter_text": "<letter_text>",
"mailbox_md_version": "<mailbox_md_version>",
"mail_class": "<mail_class>",
"recipient_line1": "<recipient_line1>",
"recipient_city": "<recipient_city>",
"recipient_state": "<recipient_state>",
"recipient_zip": "<recipient_zip>"
},
"name": "send_text_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | true returns the exact cost and checks without creating, charging or mailing anything. | |
| metadata | No | Your own reference fields, echoed back in status and webhooks. | |
| mail_class | Yes | USPS: first_class (no carrier tracking; mailbox.bot records photo proof), priority (USPS Tracking), certified (USPS tracking plus proof of mailing and delivery), certified_return_receipt (certified plus electronic return receipt). FedEx: fedex_ground, fedex_express (Express Saver, about 3 business days), fedex_2day, fedex_overnight. | |
| return_zip | No | Return ZIP code. | |
| agent_notes | No | Notes for the owner and the facility. | |
| letter_text | Yes | The full letter as plain text: date, greeting, body and sign-off as they will print. Line breaks are kept. | |
| return_city | No | Return city. | |
| return_name | No | Return name. Defaults to the account's saved return address. | |
| return_line1 | No | Return street address. Defaults to the account's saved return address. | |
| return_line2 | No | Return suite or unit. | |
| return_state | No | Return state, 2 letters. | |
| recipient_zip | Yes | Recipient ZIP code. | |
| max_cost_cents | No | Refuse the letter if it would cost more than this, in cents. | |
| recipient_city | Yes | Recipient city. | |
| recipient_name | No | Recipient name. | |
| return_company | No | Return company line. | |
| recipient_line1 | Yes | Recipient street address. | |
| recipient_line2 | No | Suite, unit or floor. | |
| recipient_state | Yes | Recipient state, 2 letters. | |
| recipient_company | No | Recipient company or organization line. | |
| requires_approval | No | true holds the letter until the owner approves it in the dashboard. | |
| delivery_signature | No | Optional signature on delivery for a single letter (batch mail has none). FedEx classes: indirect (FedEx Indirect Signature Required, $8.00: someone at the address, a neighbor, or the recipient on a signed door tag); direct (FedEx Direct Signature Required, $8.50: someone at the address); adult (FedEx Adult Signature Required, $11.00: an adult 21 or older at the address, with ID). priority: direct (USPS Signature Confirmation, $5.00: someone at the address); adult (USPS Adult Signature Required, $11.00: an adult 21 or older at the address, with ID). certified and certified_return_receipt: restricted (USPS Restricted Delivery, $10.00: only the addressee, or an agent they authorized in writing). first_class has no signature service. Omit it or send none for no signature. The fee is added to the price and itemized as cost_breakdown.delivery_signature_cents. | |
| mailbox_md_version | Yes | Current MAILBOX.md version number. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The outbound send result: status, cost breakdown, human review and next step. |