Skip to main content
Glama

cancel_task

Cancel a running task by providing its task ID. The task is terminated gracefully through the responsible runner, ensuring safe process handling.

Instructions

Request graceful cancellation. The runner that owns the child process performs termination; the MCP server never kills a PID read from task files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesTask ID to cancel
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It clarifies that cancellation is a request, the runner performs actual termination, and the server does not directly kill PIDs. This adds valuable non-obvious context beyond what the tool name implies.

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 with no wasted words. The purpose is stated first, followed by clarification of behavior. It is appropriately sized for the tool's simplicity.

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

Completeness3/5

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

Given no output schema and no annotations, the description explains the cancellation mechanism but lacks information about return values, error handling for invalid task IDs, or behavior if the task is already complete. It is sufficient for a simple tool but not comprehensive.

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 has 100% coverage with a description for 'task_id'. The description does not add any additional meaning or syntax guidance beyond what the schema already provides, so baseline score of 3 is appropriate.

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 clearly states it requests graceful cancellation, distinguishing it from forcefully killing a process. It explicitly mentions the runner performs termination and the server never kills a PID from task files, which differentiates it from sibling 'kill_task'.

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?

While the description implies it's for graceful cancellation, it does not explicitly state when to use this tool versus 'kill_task' or other alternatives. No prerequisites or usage context are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jiezeng2004-design/PatchWarden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server