Brief verfolgen
get_letter_statusUse this when the user asks if a letter was mailed, handed to the post or delivered. Returns the status of one letter: ready, sending, unknown, sent, failed, unresolved, expired, cancelled or not_mailed. A prepared letter: the preview link, the enclosures and the page count. A sent letter: the stage at the print partner, the tracking number, the events, their dates (handed_over_at, delivered_at, returned_at) and a record of the send. Also a greeting card. For a batch, give batch_id: the result shows each item with its status, stage and tracking number.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_letter_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | No | The batch_id from prepare_letter with recipients. Returns the status of every letter of the batch. Then do not give letter_id. | |
| letter_id | No | The letter_id from prepare_letter, for one letter. For a whole batch, give batch_id instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| letters | No | ||
| batch_id | No | ||
| letter_id | No | ||
| returned_at | No | When the post reported the letter undeliverable or returned. Null otherwise. | |
| delivered_at | No | When the post recorded the delivery. Null without a delivery record. | |
| handed_over_at | No | When the post had the letter: the first event at or after the handover. Null until the post's event exists. May be later than the real handover if that event is missing. | |
| recipient_name | No | ||
| transaction_state | Yes |