Skip to main content
Glama

Stop and archive sandbox

stop_sandbox

Stops and archives a sandbox for later resume or fork, refusing the stop if its disk snapshot fails so active work is not discarded.

Instructions

Stop and archive sandbox. Stop active work and archive/snapshot the sandbox for later resume or fork.

A stop always saves the sandbox's disk first. If that save is failing, the stop is refused and the sandbox keeps running so your work is not discarded, we retry automatically and email you. You are not billed for time spent in that state.

The stop is an operation: the response and the sandbox carry it as stop, with an id and a status. Poll GET /sandboxes/{sandboxId} until stop.status is completed. A failed attempt shows failing with its error and is retried until the sandbox archives; commands and prompts you send meanwhile do not cancel it. Only a resume ends it early (superseded). Calling stop again while one is pending returns the same id.

Set force: true to stop anyway, keeping the last successful snapshot and losing everything written since then. This is irreversible; only reach for it after a stop has already failed. A force on a stop that is already pending escalates that stop.

A stop never fails because the sandbox is already stopping or stopped: you get 202 with the stop in progress, or 200 with the last stop once the sandbox is stopped. statusUrl is the path that reads the stop.

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

Input Schema

NameRequiredDescriptionDefault
forceNoStop the sandbox even if its disk cannot be snapshotted. It keeps its last successful snapshot and everything written since then is permanently LOST. Without this, a sandbox whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that a failed snapshot refuses the stop rather than discarding work, that retries are automatic with an email notice, that the waiting state is unbilled, the operation lifecycle (pending/completed/failing/superseded), the polling endpoint, and the exact escalation semantics of force on a pending stop. These are non-obvious traits an agent could not derive from readOnlyHint=false/destructiveHint=false alone.

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?

Front-loaded with the action, then failure semantics, then the operation lifecycle, then the force escape hatch — a sensible order. It is long and restates the force/LOST data-loss warning already in the schema, which slightly dilutes density.

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 two-parameter mutation with no output schema, the description supplies everything needed: response shape (id, status, statusUrl), polling procedure, terminal states, HTTP codes for already-stopping/already-stopped, and the disaster-recovery path. Nothing material is left for the agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the force parameter is already documented in the schema, but the description adds meaning beyond it: force escalates an already-pending stop, and it keeps the last successful snapshot while losing subsequent writes. sandboxId gets nothing beyond the schema, though the schema already explains it.

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 pair and resource ('Stop and archive sandbox') plus the effect ('Stop active work and archive/snapshot the sandbox for later resume or fork'), which implicitly distinguishes it from delete_sandbox and resume_sandbox. It stops short of naming any sibling explicitly, so an agent must infer the boundary rather than being told it.

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?

Gives clear conditions for the two risky decisions: when a stop is refused (failing snapshot) and when to escalate with force ('only reach for it after a stop has already failed'). Also says repeat calls while pending are safe and return the same id. It offers no explicit routing against delete_sandbox or resume_sandbox, which is the main gap.

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