Skip to main content
Glama

Cancel Task

cancel_my_task
Idempotent

Stop one of your generation tasks by task id — works on queued AND running tasks. Already-saved images stay in your library; nothing is deleted or refunded. Returns how many images were saved out of how many you requested.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesTask id from generate_image or list_my_tasks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

The description adds important behavioral details beyond annotations: 'Already-saved images stay in your library; nothing is deleted or refunded' and 'Returns how many images were saved out of how many you requested.' This goes beyond the simple mutation/idempotent hints and clarifies side effects and return value.

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?

The description is two sentences: the first states purpose and scope, the second covers side effects and return format. Every sentence adds value with no redundancy, and it is front-loaded with the action.

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 single-parameter mutation tool with no output schema, the description fully explains behavior, side effects, and return value. Combined with the idempotentHint annotation and schema parameter description, it leaves no important gaps for the agent.

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?

The schema already provides 100% coverage for the single taskId parameter with its own description ('Task id from generate_image or list_my_tasks'). The tool description does not add additional semantic meaning beyond restating 'by task id', so it meets the baseline for comprehensive schema coverage.

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?

The description states 'Stop one of your generation tasks by task id' with a specific verb and resource, and clarifies it works on queued AND running tasks. This clearly distinguishes it from sibling tools like generate_image or get_video_status.

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?

It explicitly specifies when the tool applies ('queued AND running tasks'), providing clear context for its use. It does not mention alternatives or exclusions, but the scenario is well-defined enough for an agent to decide when to invoke it.

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