Create mail order
create_mail_orderUse when someone wants postcards or letters printed and mailed, to one person or many. Creates an unpaid order with one piece per item, each to a single recipient: a postcard of a photo with an optional note, or a letter from text or a PDF, in black and white or colour and, within the US, as certified mail. Returns a link where the person reviews every piece and address and pays; it never charges money or mails anything. Mailed from the US: 4×6 postcards to 194 countries, 6×9 postcards within the US.
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": {
"items": "<items>"
},
"name": "create_mail_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Images or PDFs uploaded or generated in this conversation, with download_url and file_id filled in by the host. Items point to them with photo_file or pdf_file. | |
| items | Yes | Up to 50 pieces of mail, each to one recipient. A postcard takes one of photo_file, photo_url or photo_base64. A letter takes one of content, pdf_file, pdf_url or pdf_base64; a PDF must be US Letter portrait, at most 11 pages, and prints after a page added for the address. | |
| challenge | No | The id of a challenge this tool answered with, and the answers to its four questions in the order asked, each a short string. The proof-of-work question takes a few million SHA-256 hashes. | |
| order_url | No | The link of an unpaid order this tool returned earlier. The new items are added to it instead of starting a new order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The link the person opens to review every piece, fix addresses and pay. It expires after about a week. | |
| total | No | The order's total, postage included. | |
| pieces | No | ||
| status | No | draft or pending_payment until the person pays; paid while printing; mailed once every piece is with USPS; failed if any piece couldn't be mailed. | |
| continue_url | Yes | The same link as url, for agents that carry checkout on in a browser. |