Skip to main content
Glama

cancel_wait

DestructiveIdempotent

Cancel a thread's wait when the awaited event has occurred. Returns cancelled false if no wait was set; requires thread transition permission.

Instructions

Cancel a thread's wait — the awaited thing happened (G2). {cancelled} is false when no wait was set. Requires thread:transition.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "cancel_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Adds real context beyond the annotations: it discloses that the result field {cancelled} is false when no wait was set (an edge case the agent would otherwise have to discover by trial) and that the call requires the thread:transition permission. Annotations already cover destructiveness and idempotency, so this is a solid supplement — it would reach 5 with a note on what happens to the awaiter or a non-existent thread.

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?

Three short sentences, all front-loaded: action first, return-value edge case second, permission requirement last. Nothing is padded. The unexplained '(G2)' and the brace notation '{cancelled}' cost it a point for readability.

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

Completeness4/5

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

For a one-parameter idempotent mutation with no output schema, the description covers the action, the return value's failure mode, and the required permission. What remains unstated — behavior when the thread has no wait at all, or whether the awaiter is notified — is minor at this complexity level.

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 0% — thread_id is only typed as a uuid string with no description — so the description carries the burden. 'a thread's wait' does establish that thread_id identifies the thread whose wait is cancelled, but it adds no format, sourcing, or error semantics. Adequate to infer the parameter, not more.

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: 'Cancel a thread's wait', which distinguishes it from cancel_thread (which would tear down the thread) and from set_wait/get_wait. The object of the verb ('a thread's wait' rather than the thread itself) is what makes the scope unambiguous; it stops short of 5 only because it never names the sibling it is being contrasted with.

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?

Gives a triggering condition — use this when 'the awaited thing happened' — but the qualifier '(G2)' is unexplained internal shorthand that an agent cannot decode. No when-not guidance and no alternatives are named, so the agent must infer that cancel_thread is the escalation path. Usage is implied rather than spelled out.

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

Deploy Server

Other Tools