Skip to main content
Glama

Cancel Task

cancel_my_task
DestructiveIdempotent

Stop one of your generation tasks by task id — works on queued AND running tasks. Pictures already made stay in your library. For a background batch, the cancel is sent to the picture maker: any picture not made is not charged and its tokens come back to you, and if the batch finishes first you keep all of them. Other tasks are never charged for the rest. Returns how many images were saved out of how many you requested.

Input Schema

NameRequiredDescriptionDefault
taskIdYesTask id from generate_image or list_generations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / taskId / description
      Previous value: -"Task id from generate_image or list_my_tasks."New value: +"Task id from generate_image or list_generations."
  2. Added

TDQS

A3.8/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 openWorldHint=true, but the description still adds meaningful behavior: completed images are preserved, batch cancellations refund ungenerated images, and a race (batch finishing first) yields full retention. The refund explanation is somewhat convoluted ('Other tasks are never charged for the rest'), which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded and effective, but the middle refund/batch sentences are dense and ambiguous ('the cancel is sent to the picture maker', 'Other tasks are never charged for the rest'), costing clarity for a single-param tool.

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?

No output schema exists, and the description covers the return value (saved vs requested image counts) as well as side effects on already-generated assets and billing. An agent has enough to call it and interpret the result, though the race-condition wording could be crisper.

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% with a single required taskId that is already documented with its source tools. The description adds no extra format or provenance 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 (stop/cancel) and resource (one of your generation tasks) with explicit scope: queued AND running tasks. That scope distinguishes it from the sibling cancel tools (cancel_editor_run, aftereffects_cancel_edit, premiere_cancel_edit), which target editor jobs rather than generation tasks.

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?

Scoping to 'generation tasks' implies it is not for editor runs, and the schema points to task ids from generate_image or list_generations. But there is no explicit when-to-use/when-not sentence naming an alternative, so the routing is left to inference.

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