Skip to main content
Glama

slurm_cancel

Cancel a SLURM job, individual array task, or range of array tasks by providing the job ID, task ID, or task range.

Instructions

Cancel a SLURM job, a single array task, or a range of array tasks

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID "12345" (whole job / whole array), hetjob component "12345+1", array task "12345_3", or task range "12345_[1-5]"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden, yet it discloses almost nothing beyond scope: it does not say the action is irreversible, whether running tasks are killed immediately versus allowed to finish, what permissions are needed, or what happens to already-completed or invalid IDs. The only behavioral detail is the granularity of what can be targeted, which overlaps with the parameter definition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence, front-loaded with the verb and resource, with no filler. It is exactly as long as it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation tool with no annotations and no output schema, the definition should cover irreversibility, permission requirements, and the effect on running jobs. Instead the fully documented parameter does all the work and the behavioral side is left empty.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single job_id parameter already documents every accepted format ('12345', '12345+1', '12345_3', '12345_[1-5]'). The description only restates that same granularity in prose, adding framing but no new syntax or edge-case meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Cancel') plus resource ('a SLURM job') and enumerates the granularity levels (whole job, single array task, task range). This clearly separates it from read/observe siblings like slurm_status or slurm_logs without needing to name them, though no sibling is explicitly referenced.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer you call this when a job should be stopped, but there is no explicit guidance on when to cancel versus inspect (slurm_status) first, no mention of prerequisites such as ownership or admin rights, and no note on whether array ranges are the preferred way to stop a whole array.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.