Skip to main content
Glama

Stop a sandbox

stop_sandbox
Idempotent

Stops a running sandbox while preserving its files so you can restart it later. Use it to halt active sandbox execution without losing state.

Instructions

Stop a running sandbox. Its files are kept; start_sandbox brings it back.

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": {
      "id": "<id>"
    },
    "name": "stop_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA cloud sandbox's id (rtp-...), or a local sandbox's name, from list_sandboxes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and idempotentHint=true; the description adds the substantive fact that files persist and the sandbox is restartable, which is what an agent needs before stopping a workspace. It does not say what happens to in-flight commands or connections, which is the remaining gap.

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, zero filler, with the state-preservation consequence front-loaded. Nothing could be removed without losing information.

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 one-parameter state-change tool with full annotations and a complete schema, the description covers the essentials: what stops, what survives, and how to restore. Only the fate of running commands/connections is left unstated.

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%: the single id parameter is fully documented, including format (rtp-...), local-name alternative, and provenance from list_sandboxes. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 resource ('Stop a running sandbox') and immediately clarifies the effect ('Its files are kept'), which implicitly separates it from destroy_sandbox. An agent can tell what this does without opening the schema.

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?

Names start_sandbox as the way to reverse the action, giving the agent a clear counterpart tool. It stops short of explicit exclusions such as when to use destroy_sandbox instead, so it is strong context rather than full when/when-not guidance.

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