Set the arrival date
set_arrival_dateSet, change or clear the date a previewed letter or postcard should arrive by, without previewing it again. Give the draftId from the preview and arriveBy as YYYY-MM-DD; leave arriveBy out to clear the date, so the mail goes to the printer as soon as it is sent. With a date set, once it is sent, Letter IRL holds the mail and sends it to the printer in time; USPS does not guarantee First-Class dates.
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": {
"draftId": "<draftId>"
},
"name": "set_arrival_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draftId from a letter or postcard preview | |
| arriveBy | No | The date the mail should arrive by, YYYY-MM-DD. Leave it out to clear the date, so the mail goes to the printer as soon as it is sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| message | Yes | ||
| schedule | No | The draft's dates now; absent when it mails as soon as it is sent | |
| contentVersion | No | The version of this mail as it is now: send it with the send, so what is mailed is what the person saw | |
| deliveryEstimate | Yes | ||
| contentVersionBefore | No | The version of this mail the change was made to: for the preview card, which takes contentVersion only when this is the version it shows |