Skip to main content
Glama

task_cancel

Cancel or drop an active task that is no longer needed, so the agent stops work and frees resources.

Instructions

Drop a task that no longer applies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "task_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations the description carries the full load. It does not say whether dropping is reversible, whether task state/history is destroyed, whether confirmation is required, or what happens to a running task's side effects. 'Drop' implies a destructive mutation, but none of that is stated.

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

Conciseness4/5

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

A single short sentence, front-loaded with the action. Nothing is wasted, but the brevity comes at the cost of missing essential detail rather than being efficiently complete.

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

Completeness2/5

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

For a zero-parameter, no-annotation, destructive-style mutation with no output schema, the definition should state the implicit target and any irreversibility or confirmation behavior. It states none of these, leaving an agent unable to predict the effect of a call.

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?

Zero parameters gives a baseline of 4, but the absence of a target parameter is itself a semantic question the description never resolves: it does not explain how the task is identified (implicitly the current task?). That gap pulls it below baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Drop' plus resource 'task' identifies the operation, but 'a task' is underspecified: with zero parameters it is unclear which task is targeted (current, active, or last-created). An agent can tell it is task-related, but not precisely what it acts on.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The clause 'that no longer applies' hints at a condition for use, but there is no explicit guidance on when to choose this over task_done (completed work) versus abandoning work. No prerequisites, no exclusions, and no mention of related siblings.

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