Skip to main content
Glama

stop_sandbox

Destructive

Stop a sandbox. Recordings still recording finish uploading first. A stopped sandbox can't be started again.

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

Input Schema

NameRequiredDescriptionDefault
sandbox_idYesThe sandbox, `sbx_…`.

Output Schema

NameRequiredDescriptionDefault
idYes`sbx_…`.
errorNoWhy it failed.
stateYes`starting`, `ready`, `stopping`, `stopped` or `failed`.
folderYesThe folder its recordings and screenshots go in.
regionYesThe region it runs in.
cdp_urlNoWhile it's ready: the browser's DevTools websocket, for Playwright's `connectOverCDP`, Puppeteer's `connect` or any CDP client. It opens connections until `cdp_url_expires_at`; a connection stays open until the sandbox stops. Get the sandbox again for a fresh one.
timeoutYesSeconds it runs before it stops itself.
viewportYesThe browser window.
created_atYesRFC 3339.
project_idYesThe project its recordings and screenshots go in.
started_atNoRFC 3339: when its browser was ready.
stopped_atNoRFC 3339.
stop_reasonNoOnce it's stopping: `requested` or `timeout`.
cdp_url_expires_atNoRFC 3339.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description isn't carrying the safety burden alone. It still adds real value beyond them: in-flight recordings finish uploading before the stop takes effect, and the stop is irreversible. What it doesn't clarify is whether the call blocks until uploads complete or returns immediately.

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?

Three short sentences, front-loaded with the action, then the upload caveat, then the irreversibility warning. Nothing is redundant and every sentence carries distinct 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?

With an output schema present, return values need no explanation, and the description covers the two things an agent most needs to know about a destructive stop: pending uploads and irreversibility. The only meaningful omission is the blocking-versus-asynchronous behavior of the call itself.

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?

There is a single required parameter with 100% schema description coverage, so the schema fully documents sandbox_id. The description adds no further meaning about the identifier or its format, which is the expected baseline when the schema does the work.

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?

The opening sentence names a specific verb and resource ('Stop a sandbox'), which an agent can distinguish from 'start_sandbox' and 'get_sandbox' by name alone. It doesn't explicitly name a sibling or state a scope boundary, so it falls just short of a 5.

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?

There is no explicit 'use this when...' guidance or comparison to alternatives such as stop_recording. The warning that a stopped sandbox cannot be started again implies a terminal, one-way operation and therefore cautions against casual use, but the agent must infer the decision criteria.

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.

Resources