Skip to main content
Glama

Put sandbox to sleep

pause_sandbox

Put the sandbox to sleep now: its files are kept, running programs stop and it costs no compute time. Any later command wakes it up in a few seconds. A sleeping sandbox is deleted after your plan's retention period (see delete_at); keep_days keeps it longer.

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

Input Schema

NameRequiredDescriptionDefault
keep_daysNoOptional: keep the sandbox this many days after it falls asleep (0 = your plan's default; the plan sets the maximum).
sandbox_idNoSandbox ID (sb_…). If omitted, the current sandbox of this session is used. Passing it does not change the current sandbox.

Output Schema

NameRequiredDescriptionDefault
stateYesState after the call: sleeping.
delete_atNoWhen the sleeping sandbox is deleted with its files unless it is used again (RFC 3339, UTC).
keep_daysNoDays the sandbox is kept after falling asleep, if set (otherwise your plan's default).
sandbox_idYesSandbox ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sandbox_id / description
      Previous value: -"Sandbox ID (sb_…). If omitted, the current sandbox of this session is used."New value: +"Sandbox ID (sb_…). If omitted, the current sandbox of this session is used. Passing it does not change the current sandbox."
  2. Changed3 schema fields changed
    • addedInput schema / properties / keep_days
      Added value: +{
      +  "description": "Optional: keep the sandbox this many days after it falls asleep (0 = your plan's default; the plan sets the maximum).",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / delete_at
      Added value: +{
      +  "description": "When the sleeping sandbox is deleted with its files unless it is used again (RFC 3339, UTC).",
      +  "type": "string"
      +}
    • addedOutput schema / properties / keep_days
      Added value: +{
      +  "description": "Days the sandbox is kept after falling asleep, if set (otherwise your plan's default).",
      +  "type": "integer"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false), which only signal a non-read, non-destructive mutation. The description discloses what actually happens to running processes, that compute billing stops, that state persists and is revivable, and the delayed-deletion lifecycle tied to delete_at — the exact facts an agent needs before pausing.

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 and then the consequences; every clause carries transferable information (cost, state, wake-up, deletion timing). No filler or restatement of the title.

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 not be explained, and the description instead covers the lifecycle and reversibility facts that matter for a pause operation. Nothing an agent needs in order to call this correctly, including the optional keep_days effect, is absent.

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 coverage is 100%, so both parameters are already documented, including the keep_days semantics and the sandbox_id default. The description only restates that keep_days extends retention, adding little beyond the schema, which fits the baseline 3 for high-coverage schemas.

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 ('Put the sandbox to sleep now') and immediately defines the operation's semantics: files kept, running programs stop, no compute time consumed. That distinguishes it from the deleting sibling (kill_sandbox) without needing to name it, since the retention-period sentence makes the non-destructive nature explicit.

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 operational context: sleeping preserves files at zero compute cost, any later command wakes it in seconds, and a sleeping sandbox is eventually deleted per plan retention. What is missing is an explicit contrast with the alternative ('to delete permanently, use kill_sandbox'), but the when-to-use picture is unambiguous.

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