Get mail order
get_mail_orderUse when an existing order or postcard draft needs its button shown again, or to see whether it was paid and mailed. Reads the order fresh from its link and shows its pieces, total, status and button. Creates nothing, and never charges money or mails anything.
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": {
"url": "<url>"
},
"name": "get_mail_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The link of an existing order or unpaid postcard draft. |
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. |