Skip to main content
Glama

cancel_job

Request cooperative cancellation of a running background batch job by job ID. Use it to halt queued or active batch processing when work is no longer needed.

Instructions

Request cooperative cancellation of a running background batch job.

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

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one non-trivial trait: cancellation is cooperative, so the job may not stop immediately. It omits other important behavior for a mutation tool — idempotency, what state the job ends in, whether a response confirms the request, and any permission requirements.

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 key qualifier ('cooperative') placed where it will be read, and no redundant wording. Nothing could be removed without losing signal.

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 an unannotated state-changing tool with no output schema and undocumented parameters, the description is thin — it says nothing about the result of the request, how to observe the cancelled job, or failure modes. The one-line definition leaves the agent guessing on most operational questions.

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

Parameters2/5

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

Schema coverage is 0% and the single required parameter job_id is never mentioned in the description, so nothing is added about its format, origin, or scope. The phrase 'a running background batch job' only loosely implies the parameter's target.

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 ('Request cooperative cancellation of a running background batch job'), which clearly separates it from get_job or the video-level siblings like delete_video. It stops short of a full 5 because it doesn't explicitly reference the sibling that supplies a job_id.

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 implied by 'running background batch job' — the agent can infer this applies to an in-flight job rather than a finished one. There is no explicit when-not-to-use guidance (e.g. after completion, or when delete_video is the intended action) and no stated prerequisites such as obtaining job_id from get_job.

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