Skip to main content
Glama

Cancel Job

cancel_job
DestructiveIdempotent

Cancel a queued or processing job. A cancelled job costs nothing.

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": {
      "id": "<id>"
    },
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesJob ID to cancel

Output Schema

NameRequiredDescriptionDefault
idYes
statusYescancelled

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds billing context (a cancelled job costs nothing) that annotations do not provide, but it does not say what cancellation destroys (job output, partial results) or whether the action is final.

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?

Two short sentences with zero waste. The core action is front-loaded and the cost rationale follows immediately, so an agent can parse it in one pass.

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

Completeness4/5

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

For a one-parameter mutation tool with an output schema available, the description covers the action, the applicable job states, and the cost implication. Only minor gaps remain (finality of cancellation, behavior for jobs in other states), which is close to complete for this complexity.

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?

There is a single parameter with 100% schema description coverage ('Job ID to cancel'), so the schema fully documents it. The description adds no format, source, or lookup guidance beyond the schema, making the baseline 3 appropriate.

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?

States a specific verb (cancel) and resource (job) and narrows the scope to queued or processing jobs, which lets an agent distinguish it from create_job and get_job by verb alone. It stops short of naming any sibling or noting what happens to already-completed jobs, so it is clear but not fully differentiated.

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?

'A cancelled job costs nothing' implies a reason to prefer cancelling over letting a job run, so usage is inferable. However there is no explicit when-to-use vs alternative guidance, no prerequisites, and no statement about whether cancel is appropriate for jobs in other states.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources