Skip to main content
Glama

session_interrupt

Abort a specified turn and cancel its queued messages without starting another; use session_send with delivery=steer to redirect the agent instead.

Instructions

Abort the specified turn and cancel queued messages without starting another. Use session_send delivery=steer to redirect instead.

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>",
      "turn_id": "<turn_id>"
    },
    "name": "session_interrupt"
  }
}

Input Schema

NameRequiredDescriptionDefault
turn_idYes
session_idYes
client_request_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the material destructive effects (turn aborted, queued messages cancelled) and clarifies no follow-up turn is started, but says nothing about permissions, what happens to in-flight output, or whether aborting an already-finished turn errors. Adequate core disclosure with real gaps.

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 sentences, zero filler, with the destructive action front-loaded and the redirect alternative second. Every clause carries information an agent needs to choose and call the tool.

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?

For a destructive mutation with no annotations, no output schema, and zero parameter documentation, the definition covers action and alternative routing but not side-effect detail, failure modes, or parameter meaning. Sufficient to pick the tool, insufficient to call it confidently with correct identifiers.

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%, so the description must compensate and largely does not. "The specified turn" weakly implies turn_id, but session_id vs turn_id scoping is unaddressed, and client_request_id is never mentioned or explained (e.g., idempotency/retry semantics), leaving a third of the parameters with no meaning anywhere.

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 scope: "Abort the specified turn and cancel queued messages without starting another." The added clause "without starting another" disambiguates it from a restart/retry semantics, and it explicitly contrasts with session_send, so an agent can separate the two without opening schemas.

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

Usage Guidelines5/5

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

Names the concrete alternative and the condition that selects it: "Use session_send delivery=steer to redirect instead." That is an explicit when-to-use-this-vs-that instruction with the routing parameter spelled out, not merely implied usage.

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