Skip to main content
Glama
neu-sandbox-mcp

neu-sandbox-mcp

Official
by neutree-ai

Interrupt Command

sandbox_interrupt_command

Stop a running background command in a sandbox by specifying the sandbox and command IDs; the interrupted process ends with a non-zero exit code.

Instructions

Stop a running background command. The command ends with a non-zero exit code.

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>",
      "command_id": "<command_id>"
    },
    "name": "sandbox_interrupt_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
command_idYescommand_id returned by sandbox_run_command
sandbox_idYesID of the target sandbox

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden alone, and it does disclose one important trait: the interrupted command terminates with a non-zero exit code. It leaves out whether this is idempotent for already-completed commands, whether partial output stays retrievable via sandbox_get_command_logs, and whether any permission beyond sandbox access is needed.

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 short sentences with the action front-loaded and the outcome in second position. No filler or redundant restatement of the title.

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?

For a two-parameter tool with fully documented schema and no output schema, the description covers what the tool does and the resulting command state. Minor gaps remain around re-invocation on finished commands and where the partial output goes, but nothing essential to calling it correctly 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 description coverage is 100%, so both parameters are already documented, including that command_id comes from sandbox_run_command. The description adds no syntax, format, or constraint meaning beyond that, so the baseline of 3 applies.

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 background command'), which clearly separates it from kill_sandbox and sandbox_run_command by scope of what is being stopped. It does not explicitly name any sibling, so differentiation must be inferred rather than read.

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?

The phrase 'running background command' implicitly limits this to commands started via sandbox_run_command and still in flight, but there is no explicit when-to-use or when-not guidance. Nothing tells the agent what to do if the command already finished, or to use kill_sandbox instead when the whole sandbox should go.

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