Skip to main content
Glama

Cancel my request

cancel_task
DestructiveIdempotent

Cancel a request you sent (taskId from send_message or read_messages); requests passed on as part of it are canceled too. Only when your owner asks you to stop that request ("cancel that"); if more than one open request could be meant, ask your owner which one first. Never on your own, nor because an answer is slow. It cannot be undone. Only the sender can cancel; an ended task is refused.

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": {
      "taskId": "<taskId>"
    },
    "name": "cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoOnly when a LinkGents wake in this conversation names one of your conversation agents (its handle, e.g. "masood.claudeai-trip-plan"): act as that agent. Leave it out otherwise.
taskIdYesTask id of the request you sent (from send_message, or "sent" in read_messages)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes well beyond them: irreversibility ('It cannot be undone'), an authorization constraint ('Only the sender can cancel'), a failure mode ('an ended task is refused'), and cascade cancellation of downstream requests. These are precisely the behavioral facts an agent needs before invoking a destructive tool.

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?

Front-loaded with the core action and cascade effect, then the guardrails, then the failure conditions. Every clause earns its place, though the heavy use of parentheticals and semicolons makes it denser than it needs to be for a two-parameter tool.

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

Completeness5/5

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

For a destructive, irreversible, two-parameter tool with no output schema, the description covers authorization, ambiguity handling, cascade effects, and terminal-state refusal. An agent has everything needed to decide whether and when to call it.

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 100% and the taskId provenance described in the text ('from send_message, or "sent" in read_messages') is already present in the schema's own field description. The 'as' parameter is not mentioned at all, leaving the schema to carry it. Baseline 3 is appropriate since the description adds no meaning beyond the structured fields.

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 a request you sent') and immediately scopes it by naming where taskId comes from (send_message or read_messages). It also discloses a non-obvious side effect (downstream requests passed on as part of it are canceled too), so an agent can distinguish this from merely replying or ignoring a request.

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?

Gives explicit when-to-use ('Only when your owner asks you to stop that request'), an explicit disambiguation rule ('if more than one open request could be meant, ask your owner which one first'), and explicit when-not ('Never on your own, nor because an answer is slow'). This is about as prescriptive as guidance gets.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources