Skip to main content
Glama

cancel_thronglet

DestructiveIdempotent

Cancel a session's running turn and drop its queued messages, returning a cancelled error to any pending wait and leaving the session idle for a new send.

Instructions

Cancels the session's running turn (session/cancel) and drops its queued messages; a pending wait_thronglet returns the cancelled error. The session is idle afterwards and accepts a new send_message. No-op on an idle session.

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": {
      "session_id": "<session_id>"
    },
    "name": "cancel_thronglet"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYessession_id from run_thronglet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real substance beyond them: what is destroyed (queued messages), the effect on a concurrent wait_thronglet (returns the cancelled error), and the resulting state (idle, ready for a new send_message). That is exactly the kind of consequence disclosure an agent needs before a destructive call.

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?

Three tight sentences with no filler; the core action and its destructive side effect come first, and the edge case (idle no-op) is correctly placed last as a qualifier.

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 single-parameter destructive tool with no output schema, the description covers action, destruction scope, interaction with the waiting sibling, and post-call state — nothing an agent needs in order to call it safely is missing.

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 100% and the single session_id parameter is already documented as coming from run_thronglet, so the schema carries the load. The description adds no format or sourcing detail beyond it, which matches the baseline 3 for a fully described schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Cancels the session's running turn (session/cancel)") and immediately names the side effect on queued messages, so an agent can distinguish it from wait_thronglet or send_message without opening any schema.

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 use condition (an active turn exists) and an explicit exclusion ("No-op on an idle session"), plus the follow-up path ("session is idle afterwards and accepts a new send_message"). It stops short of naming a direct alternative tool for interruption, but the when/when-not framing is present.

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