Cancel a pending job
cancel_jobCancel a job still waiting for payment.
Free to call, no authentication. Only pending_payment jobs can be cancelled; a paid, done, failed, or refunded job is untouched and the response says why.
Behavior: marks the job cancelled. No funds move - no payment was taken. Cancelling twice is safe.
Parameters: an unknown key returns found=false.
When to use: when a job is stuck unpaid. For a paid job use refund_job.
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": {
"job_key": "<job_key>"
},
"name": "cancel_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_key | Yes | Job key to cancel, from execute_task or list_jobs. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | false when no job exists with that key | |
| reason | No | ||
| job_key | No | ||
| cancelled | Yes | true when the job was still pending_payment |