Skip to main content
Glama

cancel_queued_message

Withdraw a still-queued task or workflow-owned message before it is claimed; requests for already claimed messages are refused.

Instructions

Withdraw a still-queued task or workflow-owned message; claimed messages are 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": {
      "task_id": "<task_id>",
      "message_id": "<message_id>"
    },
    "name": "cancel_queued_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
message_idYes
interaction_ownerNocaller

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it usefully discloses the queued-only precondition and the refusal on claimed messages, which is real state-machine context. It says nothing about idempotency, permissions, what happens to the message after withdrawal, or error semantics, and leaves the interaction_owner default ("caller") unexplained.

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?

One compact sentence with the precondition front-loaded and the failure case attached; there is no filler and nothing an agent must read past to get the key constraint.

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?

An output schema exists, so return values need not be explained, and the refusal behavior is covered. However, for an unannotated mutating tool with three fully undocumented parameters, the definition leaves too much unsaid about prerequisites and the meaning of interaction_owner to be considered complete.

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 0% for three parameters, so the description must compensate and largely does not — task_id, message_id, and especially interaction_owner receive no semantics. The only indirect aid is that "task or workflow-owned message" hints at what task_id and message_id address, which is thin.

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?

A specific verb ("withdraw") plus a scoped resource ("still-queued task or workflow-owned message"), with the state qualifier "still-queued" narrowing the target. It does not name or distinguish itself from the closely related siblings cancel_workflow_message or cancel_task, so an agent must still infer which cancel tool applies.

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?

It states a clear applicability condition (the message must still be queued) and an explicit exclusion ("claimed messages are refused"), which tells the agent when the call will fail. It stops short of naming alternatives such as cancel_task or cancel_workflow_message for messages that are already claimed, so the when-not path has no routing.

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