Skip to main content
Glama

bus_cancel_task

Destructive

Cancels an open task so no agent works on it; cancellation is final, preventing claims or completion. Use commenting to redirect work non-destructively, or create a new task instead.

Instructions

Cancel an open task so nobody works on it. Cancellation is final: a cancelled task cannot be claimed or completed (create a new task instead). Use sparingly; commenting is the non-destructive way to redirect work.

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": {
      "agent": "<agent>",
      "id": "<id>"
    },
    "name": "bus_cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe task id to cancel.
agentYesYour registered agent name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name."
    • addedInput schema / properties / id / description
      Added value: +"The task id to cancel."
  2. First observedv0.5.11

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description adds the crucial irreversibility detail: a cancelled task 'cannot be claimed or completed.' That 'open task' precondition tells the agent the operation only applies to a limited task state, which the annotations do not convey.

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?

Three short sentences, no filler, and the core action is front-loaded before the caveats. Slightly more compact phrasing could have merged the final warning, but nothing is wasted.

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 two-parameter destructive mutation with no output schema and annotations covering the safety profile, the description covers irreversibility, the alternative, and the follow-up action. It stops short of saying what happens if the task is already claimed or completed (error vs. silent no-op), which matters given idempotentHint=false.

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 description coverage is 100%, with both `id` and `agent` documented inline, so the description needn't restate them. It adds only the implicit constraint that `id` should refer to an open task, which is marginal extra meaning.

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 ('Cancel an open task') plus the immediate consequence ('so nobody works on it'), which distinguishes it from bus_comment_task and bus_complete_task without opening either schema.

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

Usage Guidelines5/5

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

Explicitly warns 'Use sparingly' and names the non-destructive alternative for the common case: 'commenting is the non-destructive way to redirect work.' It also gives the required follow-up path when cancellation is the wrong call ('create a new task instead').

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