cancel_outbound_mail
Cancel a queued outbound mail job before facility printing starts. If the mail was funded with prepaid credits, eligible credits are returned to the member ledger. Safe to retry: already-cancelled mail returns cancelled status without creating a duplicate refund. In chat, report cancellation status, returned credits, updated balance, and whether it had already been cancelled. If a transient error occurs, poll the mail status and credits before retrying.
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": {
"mail_id": "<mail_id>"
},
"name": "cancel_outbound_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mail_id | Yes | UUID of the queued outbound mail job to cancel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Cancelled queued outbound mail and returned credits when eligible. |