Skip to main content
Glama

cancel_workflow_message

Cancel a queued workflow message before delivery; messages already delivering or delivered cannot be withdrawn. Use it to stop pending messages in a workflow run.

Instructions

Cancel one queued workflow message. Delivering and delivered messages cannot be withdrawn.

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

Input Schema

NameRequiredDescriptionDefault
run_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.5/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 burden. It does disclose the key state constraint (only queued messages are cancellable; delivering/delivered are not), which is genuinely useful behavior beyond the schema. It stops short of stating whether cancellation is irrecoverable, what happens on a failed cancel, or whether ownership/permissions are required, so an agent's safety picture is incomplete for a mutating tool.

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?

Two short sentences, zero filler, with the action stated first and the critical restriction immediately after. Nothing could be removed without losing meaning.

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?

The output schema exists, so return values need not be explained. But for a mutating tool with no annotations and three undocumented parameters, the description should at minimum clarify the identifiers and the ownership semantics of interaction_owner. It is adequate on state eligibility and thin elsewhere.

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% for all three parameters. The description never mentions run_id, message_id, or the interaction_owner parameter (which defaults to 'caller' and likely governs authorization). Nothing in the prose compensates for the total absence of parameter documentation, leaving the meaning and format of each field unexplained.

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 gives a specific verb and resource: 'Cancel one queued workflow message.' An agent can tell it acts on a single queued workflow message, which distinguishes it reasonably from generic cancel siblings, but it never names which sibling to use instead for delivering/delivered messages or for other message types.

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 supplies a concrete exclusion: messages that are delivering or already delivered cannot be withdrawn. That is a real when-not condition rather than mere implied usage. However, it offers no positive when-to-use guidance nor points to an alternative tool (e.g., a sibling for canceling other queued items), so routing is only half-solved.

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