Cancel Automation Run
cancel-automation-runCancel an unfinished automation run to skip its remaining steps and stop further emails from that run to the contact while other runs and the automation continue.
Instructions
Cancel one automation run that has not finished (status running or quota_exceeded). Its remaining steps are skipped, so the contact gets no further emails from this run. Other runs and the automation itself keep going; to stop new runs, disable the automation with update-automation. Before using this tool, you MUST double-check with the user that they want to cancel this run. Reference the automation NAME and the run ID when confirming, and warn the user that cancelling is irreversible. You may only use this tool if the user explicitly confirms. Cancelling a run that is already cancelled succeeds and changes nothing. Fails if the run has already completed or failed.
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": {
"automationId": "<automationId>",
"runId": "<runId>"
},
"name": "cancel-automation-run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | The ID of the run to cancel. Find it with get-automation-runs, status "running" or "quota_exceeded". | |
| automationId | Yes | The automation ID or Resend dashboard URL (e.g. https://resend.com/automations/<id>) |