Skip to main content
Glama

start_sandbox

Start a sandbox: a browser on a GPU machine, for showing websites in videos. Drive it with Playwright (connectOverCDP), Puppeteer or any CDP client at its cdp_url, which it has once it's ready. With wait, this answers once it's ready, waiting up to 45 seconds; otherwise call get_sandbox until it is. Take screenshots with take_screenshot and record it with start_recording; their files land as assets in its folder. It stops itself after its timeout (an hour unless timeout says otherwise); stop it with stop_sandbox when you're done. Its time is billed per second while it runs, at least a minute.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoAnswer once it's ready (or failed), waiting up to 45 seconds, instead of at once.
folderNoThe folder its recordings and screenshots go in, ending in `/`; `sandboxes/<id>/` when absent.
timeoutNoSeconds it runs before it stops itself, from 60 to 21600; 3600 (an hour) when absent.
viewportNoThe browser window; 1920×1080 at scale 1 when absent.
project_idNoThe project its recordings and screenshots go in; the workspace's default project when absent.

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

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false, openWorld=true) by disclosing lifecycle and cost behavior: it self-terminates at its timeout (an hour by default), 'its time is billed per second while it runs, at least a minute,' and connection is via CDP at cdp_url. These are exactly the operational facts an agent needs before spawning a billable resource.

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 purpose, then connection method, then readiness, then artifacts, then lifecycle/cost — a sensible order. It is dense with semicolon-chained clauses and a few details (viewport-less defaults, asset folder wording) border on redundant with the schema, but almost every sentence carries actionable information.

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?

An output schema exists, so return values need no explanation, and the description still covers readiness semantics, connection protocol, artifact location, teardown, and billing. For a resource-creating tool with five optional parameters, nothing an agent needs to call it correctly is missing.

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%, so the baseline is 3, but the description adds workflow meaning: 'wait' is framed as answering once ready with a 45-second ceiling, and 'timeout' is tied to the self-stop and billing model rather than just a seconds range. 'folder' is described as where screenshots/recordings land as assets, which clarifies its downstream effect.

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?

Opens with a specific verb+resource plus a concrete definition: 'Start a sandbox: a browser on a GPU machine, for showing websites in videos.' That immediately separates it from get_sandbox (poll status) and stop_sandbox (tear down), which are named later in the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use 'wait' to block up to 45s or 'call get_sandbox until it is [ready]'; 'Take screenshots with take_screenshot and record it with start_recording'; 'stop it with stop_sandbox when you're done.' When-to-use, when-not-to-block, and the follow-on siblings are all named.

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