Skip to main content
Glama

collab_cancel_task

Cancel a pending or running background task by task_id to stop unwanted work and free orchestration resources.

Instructions

Cancel a pending or running background task by task_id.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task_id": "<task_id>"
    },
    "name": "collab_cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the state precondition but says nothing about whether cancellation is immediate or graceful, whether partial output is preserved, whether the call is idempotent, or how an unknown/completed task_id is reported – significant gaps for a mutation tool.

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?

A single front-loaded sentence with no filler; verb, scope, and selector all appear before any trailing detail.

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?

For a one-parameter tool with no output schema this covers the minimum, but the agent still lacks post-cancel behavior, error cases, and parameter sourcing, which matter for a destructive operation lacking annotations.

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% and task_id carries no description, so the schema gives the agent nothing. The description only restates that the task is identified 'by task_id' without giving its format or where to obtain it (dispatch return value, status output), leaving the parameter partially unexplained.

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

Purpose4/5

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

States a specific verb (Cancel) and resource (background task) plus the eligible states (pending or running) and the selector (task_id). An agent can distinguish it from collab_dispatch_task and collab_get_status by the mutation verb, though no sibling is named explicitly.

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?

The phrase 'pending or running' implicitly tells the agent the task must not already be finished, which is useful context for when to call it. However, there is no explicit guidance on alternatives (e.g., how to check state first via collab_get_status) or what to do for completed tasks.

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