Skip to main content
Glama

Cancel a message that hasn't been sent yet

cancel_queued_message
Destructive

Remove a waiting message before its send begins. The answer says whether its message quota was returned. Any new-conversation budget it reserved is released too. A send that has already begun cannot be cancelled. The id is the one the send call returned. Free.

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

Input Schema

NameRequiredDescriptionDefault
idYesId of the queued message, from the send call's answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the destructiveHint annotation by disclosing side effects a caller could not infer: message quota is returned to the account and any reserved new-conversation budget is released. It also flags the hard precondition (cannot cancel an in-flight send) and states the call is 'Free', which is cost information found nowhere in the schema or annotations.

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?

Five short sentences, each carrying a distinct fact, with the operation and its precondition front-loaded before the side effects and cost note. Nothing is repeated and there is no filler.

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 one-parameter cancellation tool with annotations already declaring destructiveness, the description covers what is destroyed, what is refunded, what cannot be cancelled, where the id comes from, and what the response reports. No output schema exists, yet the return value (quota-returned flag) is still described.

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% and the single 'id' parameter is documented as a UUID pattern, so the structured data does the heavy lifting. The description only restates the provenance of the id ('the one the send call returned'), adding traceability but no new semantics or format details.

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 and resource ('Remove a waiting message') plus the temporal scope ('before its send begins'), which separates it from send_message and list_queued_messages in the sibling set. It does not name an alternative tool, so it stops short of the 5 bar for explicit sibling differentiation.

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

Usage Guidelines4/5

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

Gives a clear applicable condition (message is waiting, send has not begun) and an explicit exclusion ('A send that has already begun cannot be cancelled'). It never points to a fallback such as listing queued messages first, so the alternative-routing piece is absent.

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