Skip to main content
Glama

Interrupt running work

interrupt_agent

Stops running agent work on a sandbox, either across all conversations or for a specified conversation only. Use it to halt active tasks without affecting other conversations.

Instructions

Interrupt running work. Interrupt running agent work. By default this stops every conversation on the sandbox. Pass conversation to stop just one, leaving the others running. See Integrated agents.

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": {
      "sandboxId": "<sandboxId>"
    },
    "name": "interrupt_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.
conversationNoInterrupt only this conversation id. Omit to interrupt the whole sandbox.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, but they say nothing about scope. The description supplies the single most important behavioral fact an agent needs: the default call affects **every** conversation on the sandbox, which is a large, non-obvious side effect. It stops short of describing what happens to in-flight commands or whether the stop is graceful, so it is strong rather than complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope warning is front-loaded and well-emphasized, but the first two sentences say the same thing twice ("Interrupt running work. Interrupt running agent work.") and the trailing documentation link adds no operational value. Trimming the duplication would make it tighter.

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?

With only two fully described parameters, annotations covering the safety profile, and no output schema to explain, this is close to sufficient: the agent knows what it does, on what scope, and with which parameter. Remaining gaps (post-interrupt state, return behavior) are minor for a stop-style tool.

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 both parameters are already documented, including "Omit to interrupt the whole sandbox." The description reinforces that default-scope semantics with emphasis, but adds no format, id, or edge-case detail beyond the schema.

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?

"Interrupt running work" names a specific action and target, and the follow-up sentences make the blast radius explicit (whole sandbox by default, one conversation if scoped). The opening two sentences are near-duplicates of the name/title, but the scoping detail carries real differentiating information.

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?

It gives concrete selection logic for the one meaningful branch: omit `conversation` to stop everything, pass it to stop just one while leaving others running. It does not say when to prefer interrupting versus other control operations, so the guidance is clear but not exhaustive.

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