Skip to main content
Glama

PillDrops

agent_interrupt

Stop a running turn. grace_seconds lets the agent stop politely before it is killed.

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": {
      "sandbox_id": "<sandbox_id>",
      "turn_id": "<turn_id>"
    },
    "name": "agent_interrupt"
  }
}

Input Schema

NameRequiredDescriptionDefault
turn_idYesturn id from agent_ask or agent_list_turns
sandbox_idYessandbox id of an agent template
grace_secondsNoseconds to stop politely

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It does disclose a useful two-phase behavior — a polite stop window followed by a kill — but says nothing about permissions, whether the interrupt is reversible, whether the call blocks until the turn ends, or what happens to partial output.

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 front-loaded and the optional parameter explained immediately after. The grace_seconds clause slightly restates the schema's 'seconds to stop politely' wording rather than adding new detail.

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 three-parameter mutation tool whose schema fully documents every field, the description supplies the action, the target, and the meaning of the one non-obvious argument. What remains unsaid — return values and post-interrupt state — is beyond what an agent needs to invoke it correctly.

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%, so all three parameters are already documented. The description elaborates on grace_seconds as a polite-stop window before killing, which adds a little meaning, but turn_id and sandbox_id get no additional context.

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: "Stop a running turn." This clearly separates it from read-oriented siblings like agent_get_turn and agent_list_turns, though it never names them explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance beyond the implied 'use this to stop a turn.' Nothing explains when to prefer interrupt over other lifecycle actions, when to omit grace_seconds, or what preconditions the turn must satisfy.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.