slurm_cancel_job
Cancel a running or pending Slurm job by its job ID. Send a configurable signal, defaulting to SIGTERM, for termination.
Instructions
Cancel a running or pending Slurm job by job ID (scancel).
Write operation — recorded in the audit log.
Args: job_id: Slurm job ID to cancel. host: Slurm head node hostname (overrides SLURM_HOST). signal: Signal to send to the job (default: SIGTERM). Use SIGKILL for immediate termination. gateway_id: Gateway UUID for the target site.
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_id": "<job_id>"
},
"name": "slurm_cancel_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| job_id | Yes | ||
| signal | No | SIGTERM | |
| gateway_id | No |