Skip to main content
Glama

Clone sandbox

clone_sandbox

Make 1–10 independent copies of a sandbox from its current disk (files and installed packages; programs are not running in the copies). Each copy is a new sandbox with its own ID, IP addresses and identity (new machine-id). Use it to try several approaches in parallel from the same starting point. Copies keep the source's settings: the same lifetime, behaviour after it (sleep or destroy), inactivity limit, compute class and network access (no internet, allowed and blocked destinations, IP version). timeout_s changes only the lifetime of the copies; network access, IP version and compute class are always inherited, and a copy never gets wider network access than the source. Copies count towards your concurrent sandbox limit; when only some can be created, the result lists the errors. The copies do not become the current sandbox: without sandbox_id the current sandbox is cloned and stays current; a sandbox_id you pass becomes the current sandbox, as with the other tools. To work in a copy, pass its sandbox_id to a later call (that copy then becomes the current sandbox).

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

Input Schema

NameRequiredDescriptionDefault
nameNoOptional name of the copy (lowercase letters, digits, . _ -); several copies are named <name>-1 … <name>-N.
countNoNumber of copies, 1–10 (default 1).
timeout_sNoOptional lifetime of the copies in seconds (default: the same as the source sandbox).
sandbox_idNoSandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id.

Output Schema

NameRequiredDescriptionDefault
errorsYesCopies that could not be created.
sandbox_idsYesIDs of the new sandboxes.
source_sandboxYesSandbox ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields 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. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id."
    • addedInput schema / properties / timeout_s
      Added value: +{
      +  "description": "Optional lifetime of the copies in seconds (default: the same as the source sandbox).",
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Because annotations only declare it is not read-only and not destructive, the description does the heavy lifting and adds substantial context: copies get new IDs, IPs and machine-id; they inherit lifetime, sleep/destroy behaviour, inactivity limit, compute class and network access; and no copy can get wider network access than the source. It also discloses the limit interaction (copies count toward the concurrent sandbox limit) and partial-failure behaviour ("when only some can be created, the result lists the errors"), which is exactly the kind of operational disclosure an agent needs before calling a mutation tool.

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?

The core action and its scope lead the paragraph, then inherited settings, then side effects, which is a sensible order with no filler. It is nonetheless a long, dense block covering several topics, and the current-sandbox point is restated across two sentences, so it falls short of maximally tight.

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?

Given a four-parameter mutation tool with an output schema, the description covers what an agent cannot infer: what is inherited versus overridable, that copies are not current by default, and how partial failures surface in the result. The output schema handles return-value structure, so nothing essential 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 already 100%, so the schema documents every parameter, and the description can add meaning beyond it. It does: timeout_s is explicitly scoped to changing only the lifetime, with network access, IP version and compute class always inherited. It also explains the naming pattern for multiple copies indirectly via the schema and clarifies sandbox_id's side effect of making the source current. This goes beyond restating the schema fields.

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?

The first sentence states a specific verb and resource with crisp scope: "Make 1–10 independent copies of a sandbox from its current disk (files and installed packages; programs are not running in the copies)." That phrase distinguishes cloning from create_sandbox and from resume/pause, and the parenthetical rules out the most likely misconception (that the copy resumes running the source's processes).

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?

"Use it to try several approaches in parallel from the same starting point" gives a clear when-to-use trigger. It also spells out the current-sandbox rule so an agent knows how to keep working after cloning. The only gap is that it never names create_sandbox or snapshot alternatives for a fresh start, which would have made the routing flawless.

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