Preview Letter
preview_letterRender/inspect the exact letter or small postcard PDF and calculate its current price without sending, reserving credits or uploading artwork. Supply exactly one plain-text body or PDF. Covers First-Class, Certified, electronic return receipt, color, duplex, bulk recipients and coupon. Postcards default to included full color; letters default to black and white. Composed preview uses the first recipient. For a small postcard, the primary PDF remains the one-page print artwork; proof identifies a separate two-page PDF showing the approximate white print border and address side. Review that proof, but submit only the original artwork or body, never the proof. Recheck the final price before sending. Workspace authentication required. Tool contract: https://directmailamerica.com/agents/references/mcp-narrow.md
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": {
"from": "<from>",
"recipients": "<recipients>"
},
"name": "preview_letter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| from | Yes | ||
| color | No | ||
| filename | No | ||
| certified | No | ||
| mailClass | No | first_class | |
| pdfBase64 | No | ||
| couponCode | No | ||
| recipients | Yes | ||
| doubleSided | No | ||
| electronicReturnReceipt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | ||
| error | No | ||
| pages | No | ||
| filename | No | ||
| mimeType | No | ||
| operation | Yes | ||
| sizeBytes | No | ||
| priceCents | No |