Skip to main content
Glama

tasks_cancel

Destructive

Cancel an in-flight task by marking its disk record cancelled and signaling the addon worker to stop between frames; already-finished tasks are unchanged.

Instructions

Cancel an in-flight task.

Sets state="cancelled" on the disk record AND signals the addon-side worker (for renders) so it stops between frames. Cancelling an already-terminal task is a no-op -- the response carries the existing state unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes16-hex-char task id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation by disclosing the mechanism: it sets state="cancelled" on the disk record AND signals the addon-side worker to stop between frames, and cancelling a terminal task is a no-op that returns existing state. This is exactly the operational context an agent needs before a destructive call.

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?

Front-loads the purpose in one short sentence, then adds only the two behavioral facts that matter. No filler and no redundancy.

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

Completeness5/5

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

For a one-parameter destructive tool with no output schema, the description covers the action, side effects on disk and worker, and the no-op/return behavior on terminal tasks. Nothing material is missing.

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 coverage is 100% for the single id parameter, which the schema already documents as a 16-hex-char task id. The description adds no format or sourcing detail beyond the schema, so the baseline 3 applies.

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 (cancel) and resource (in-flight task), and the verb immediately separates it from siblings like tasks_resume, tasks_list, and tasks_get. An agent can identify what this does without opening the schema.

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?

The opening 'Cancel an in-flight task' establishes the operating context, and the no-op note clarifies behavior for already-terminal tasks. It stops short of naming the inverse sibling (tasks_resume) as the alternative, so routing is clear but not fully explicit.

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