Skip to main content
Glama

cancel_task

Stop a delegated task and get back either a canceled result or the final state it had already reached.

Instructions

Stop a task you delegated. Returns canceled, or the final state it had already reached.

Input Schema

NameRequiredDescriptionDefault
task_idYes

Output Schema

NameRequiredDescriptionDefault
stateYes
answerNoset when the peer answered directly instead of working on a task
task_idYes
versionYespass as after_version to get_delegated_task_updates to wait for the next change

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that the call is tolerant of already-finished tasks, returning 'the final state it had already reached' rather than failing. It omits permission requirements, effects on the delegatee, and whether cancellation is reversible.

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, zero filler, with the action front-loaded and the outcome semantics second.

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 one-parameter mutation tool with an output schema present, the description covers purpose, scope, and the tricky already-completed case. Only parameter meaning and permission prerequisites are left implicit.

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 0%, so the description must compensate for the single task_id parameter. It only implies the constraint that the task must be one you delegated; it adds nothing about identifier form or what an out-of-scope id does.

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 and resource ('Stop a task') plus a scope qualifier ('you delegated') that separates it from accept_task, delegate, and update_task. An agent can pick it 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'You delegated' implies the prerequisite, but there is no explicit when-to-use versus alternatives such as update_task or delete_session, and no when-not guidance (e.g. tasks not delegated by you).

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