Send Letter
send_letterRelease the immutable quoteId from quote_letter using an existing authenticated workspace balance. Requires confirmed=true, approvedTotalCents matching the saved quote and one idempotencyKey after review of the exact saved PDF, addresses and options. Changed content requires a new quote and fresh approval. Immediately spends the approved amount and can buy postage. No guest payment, funding or cryptocurrency settlement. Insufficient balance sends nothing. Staging prevents postage but still debits the workspace balance. Reuse the same quoteId and key after interruption; uncertain sends require reconciliation. Tool contract: https://directmailamerica.com/agents/references/mcp-narrow.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Plain-text letter body when not uploading a PDF | |
| from | No | ||
| color | No | Color letter printing adds $0.49 per printed page per recipient. Express postcards default to included full color: true preserves color; false converts the mailed PDF to grayscale. | |
| quoteId | Yes | Immutable quote returned by quote_letter. Review its exact PDF, addresses, options and total before approval. | |
| filename | No | ||
| certified | No | ||
| confirmed | Yes | The user explicitly approved the exact document, addresses, options and total. | |
| mailClass | No | first_class | |
| pageCount | No | Actual inspected PDF page count determines the send price; this field cannot override it. | |
| pdfBase64 | No | Print-ready PDF as base64, maximum 25 MiB decoded. Embedded fonts are preserved. Express postcard: exactly one unrotated 5.5 × 4.25 inch (396 × 306 point) page, matching page boxes, no added bleed or crop marks. No raw image files. | |
| couponCode | No | Server-validated catalog code (case-insensitive). Applied to charged/quoted cents only — staging keys still never buy postage. Unknown codes are rejected. | |
| recipients | No | ||
| doubleSided | No | ||
| idempotencyKey | Yes | Required for workspace-credit sends. Generate once per intended mailing and reuse for identical retries. Uncertain results remain reserved and cannot automatically resubmit. | |
| approvedTotalCents | Yes | Exact approved USD cents; must match the server's calculated price before the balance is spent. | |
| electronicReturnReceipt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No | ||
| quote | No | ||
| replay | No | ||
| status | No | ||
| quoteId | No | ||
| intentId | No | ||
| createdAt | No | ||
| operation | Yes | ||
| priceCents | No | ||
| settlement | No | ||
| statusLabel | No | ||
| balanceCents | No | USD cents. Null means not applicable or not known; never interpret null as zero. | |
| trackingNumber | No |