Skip to main content
Glama

session_interrupt

Destructive

Stops a running session on a specified server, or on the only available server, to halt ongoing work and regain control.

Instructions

Interrupt a session on one server. Omit the server argument when exactly one server is available.

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

Input Schema

NameRequiredDescriptionDefault
serverNoServer id. Omit when exactly one server is available.
allowedNoAllow write operations (gated).
session_idYesSession id on that server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered by structured data. The description adds no behavioral context beyond that: it does not say whether in-flight generation is aborted, whether partial output is discarded, whether the session remains usable afterward, or what "gated" write allowance means in practice for a destructive operation.

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?

Two short sentences with the action stated first and the conditional second, which is well front-loaded. The second sentence largely duplicates the schema's server parameter description, so it is not entirely waste-free.

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 three-parameter, schema-fully-described tool with no output schema, the description covers the essentials needed to invoke it. What is missing is consequence information for a destructive mutation — the effect on the running session and on any partial results — which an agent would want before calling it.

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 100%, so each parameter is already documented, and the description only restates the server-omission rule already present in the schema. The meaning of the 'allowed' flag ("Allow write operations (gated)") and its interaction with an interrupt call is left entirely to the schema, so the description adds no semantic value here.

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?

Names a specific verb and resource ("Interrupt a session on one server") and scopes it to a single server, which distinguishes it from the read-oriented siblings like session_status or session_messages. It stops short of explicitly contrasting with session_prompt or session_schedule, but the purpose is unambiguous.

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?

Provides one concrete calling condition — omit the server argument when exactly one server is available — which is useful operational guidance. However, it gives no guidance on when to interrupt versus simply not sending a prompt, no prerequisites, and no note on what state the session is left in afterward, so usage is only partially covered.

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