Skip to main content
Glama

Cancel an offloaded job

offload_cancel_task
DestructiveIdempotent

Stops a queued or running offloaded job and its worker process tree; completed jobs remain unchanged.

Instructions

Stop a queued or running offloaded job and its worker process tree. Finished jobs are left as they are.

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

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID from offload_submit_task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so safety is covered. The description still adds real value by disclosing what is destroyed (the worker process tree, not just the job record) and that finished jobs are unaffected, which reinforces the idempotent behavior concretely. It does not describe failure modes or what happens to partial output, keeping it below a 5.

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, front-loaded with the action and its target, with the no-op condition last. Every clause carries information; nothing is redundant.

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 single-parameter destructive tool whose annotations already carry the safety profile and with no output schema to explain, this is nearly complete. The only gap is what the caller receives or should expect on a job that has already finished, which the 'left as they are' phrasing implies but does not state as a return behavior.

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?

Only one parameter exists and schema description coverage is 100%, so the schema already documents job_id as the ID from offload_submit_task. The description adds no further meaning about that parameter, which is acceptable at baseline but not more.

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

Purpose5/5

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

States a specific verb (stop) applied to a specific resource (queued or running offloaded job) plus its worker process tree, and explicitly bounds scope by excluding finished jobs. An agent can distinguish this from offload_submit_task, offload_get_status and offload_get_result from the description alone.

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?

Clearly establishes the applicable state (queued or running) and states the exclusion that finished jobs are left untouched, so an agent knows when the call is a no-op. It stops short of naming the sibling tools to use for status checks or result retrieval, which is the only missing piece.

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