cancel_job_run
Stops a running watsonx job run by job ID and run ID within a project. Use it to halt execution that is still in progress without deleting the run record.
Instructions
EXPERIMENTAL — from an unverified example request. Confirmed to be POST (not DELETE) in that example: POST /v2/jobs/{id}/runs/{run_id}/cancel?project_id=.... A separate DELETE .../runs/{run_id} endpoint also exists and is distinct from cancel (presumably deletes the run record instead of stopping it) — not exposed as its own tool in v1.
NOTE: confirm isn't listed in 02-tools.md's per-tool contract for this
one, but 03-conventions.md's blanket destructive-operation rule ("any
cancel_* tool requires confirm: true") applies here too — added for
consistency with that stated hard requirement.
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": {
"project_id": "<project_id>",
"job_id": "<job_id>",
"run_id": "<run_id>"
},
"name": "cancel_job_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| run_id | Yes | ||
| confirm | No | ||
| project_id | Yes |