Skip to main content
Glama

cancel_jobs

Stop specific queued or running jobs by ID, or halt all waiting and active jobs at once. Use it to end unwanted character, portrait, or asset generation tasks in the queue.

Instructions

Stop the named jobs, or every waiting and running job with all: true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
job_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only conveys that this is a stop operation. It does not say whether cancellation is reversible, what happens to partially matched or already-completed jobs, whether ownership or permissions are required, or whether the response reports which jobs were actually stopped.

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?

A single front-loaded sentence with the primary action first and the bulk-mode escape hatch second. Every clause carries information; there is no filler or redundancy.

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, unannotated tool with no output schema and zero schema description coverage, the description is too thin. The agent is left without irreversibility, permission, conflict-resolution, or result-reporting information that a cancellation tool needs before being invoked.

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 0%, so the description must compensate. It does define the scope of `all` (waiting and running jobs, implicitly not finished ones), but `job_ids` is only described as "named jobs" with no format or source given, and the precedence when both `all` and `job_ids` are supplied is left unspecified.

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 and resource ("Stop the named jobs") plus the bulk-operation mode, so the agent knows exactly what the tool acts on. It stops short of 5 because it never positions itself against related siblings such as wait_for_jobs, leaving the agent to infer that this is the cancellation counterpart.

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

Usage Guidelines4/5

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

Gives clear in-tool context: call it with named IDs to stop specific jobs, or with all: true to stop all waiting and running jobs. The two operation modes are explicit, but there is no guidance on when to prefer this tool over the sibling wait_for_jobs, nor any exclusion or precondition for bulk cancellation.

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