Cancel batch
cancel_batchCancel every email in a batch send that is still scheduled. Emails already queued or sent are left alone and counted in not_cancellable. Safe to repeat: a second call cancels nothing more.
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": {
"batch_id": "<batch_id>"
},
"name": "cancel_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | Batch id (batch_…) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | Batch id (batch_…) | |
| cancelled | Yes | Scheduled emails this call cancelled | |
| not_cancellable | Yes | Emails already queued, sent or finished, which can no longer be cancelled | |
| already_cancelled | Yes | Emails that were already cancelled before this call |