Skip to main content
Glama

cancel_message

Destructive

Cancel a queued message if it has not been accepted by a gateway.

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": {
      "message_id": "<message_id>"
    },
    "name": "cancel_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds genuine behavioral context beyond that: cancellation only succeeds while the message is still queued and unaccepted. It stops short of describing the failure mode when the precondition is unmet or what the response reports.

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 sentence with the action and the precondition front-loaded, and no redundant restatement of the tool name or annotations. Nothing could be removed without losing information.

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 mutation with no output schema, the definition covers the core precondition but leaves the caller's expectations underspecified: the error behavior for an already-accepted message and the identifier's origin are unstated. Adequate to attempt the call, not complete enough to predict its outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is expected to compensate, but it never mentions message_id, where to obtain it, or whether it identifies the queued message versus the delivered one. The only parameter meaning comes from the schema's uuid format and pattern, which the description does nothing to extend.

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?

The description uses a specific verb and resource ('Cancel a queued message') and adds a state qualifier ('if it has not been accepted by a gateway'), so an agent knows exactly what operation is performed. It does not reference any sibling tool, so the boundary with tools like scheduled_messages or messages must be inferred rather than read.

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 eligibility condition ('queued', 'not accepted by a gateway') functions as an implicit when-to-use rule, which is real guidance. However, no alternative tool is named and there is no explicit when-not-to-use statement or pointer to whatever tool handles already-accepted messages.

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.