Skip to main content
Glama

Create disk snapshot

create_snapshot

Save a snapshot of the sandbox's disk (all files, installed packages and settings – not memory or running programs). The sandbox keeps running after a pause of a few milliseconds; a sleeping sandbox is not woken. Use it before a risky change, or to start new sandboxes from this state later (from_snapshot when creating a sandbox). Snapshots count towards your plan's snapshot limit and their disk is billed like sleeping sandboxes. Without sandbox_id the current sandbox is used – this never creates one.

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

Input Schema

NameRequiredDescriptionDefault
nameNoOptional label (lowercase letters, digits, . _ -), e.g. 'before-upgrade'.
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
nameNoLabel.
vcpuNovCPU of the source sandbox (default for sandboxes from the snapshot).
mem_mbNoRAM in MB of the source sandbox.
disk_mbNoDisk size in MB.
templateYesTemplate of the source sandbox.
created_atYesCreation time (RFC 3339, UTC).
size_bytesYesSpace the snapshot takes (billed as storage).
snapshot_idYesSnapshot ID (snap_…).
source_sandboxYesSandbox the snapshot was taken from.

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. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: the sandbox keeps running with only a few-millisecond pause, a sleeping sandbox is not woken, snapshots consume the plan's snapshot limit, and their disk is billed like sleeping sandboxes. These are operational cost and side-effect facts an agent cannot get from readOnlyHint=false / destructiveHint=false, and they materially affect whether calling is advisable.

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-loads the verb and scope in the first sentence, then behavior, then usage. Every clause carries information; the density is high but not padded. The usage guidance arriving last is a minor ordering weakness for an agent scanning for when to call.

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 described. With only two optional parameters and a non-destructive write, the definition covers scope, side effects, cost, billing, and default sandbox resolution — everything needed to invoke it correctly.

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; the description still adds meaning by stating that omitting sandbox_id targets the current sandbox and "this never creates one," which rules out an implicit-create reading the schema does not explicitly deny. It does not elaborate on the name label constraints, but those are fully documented in the schema.

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?

Names a specific verb and resource ("Save a snapshot of the sandbox's disk") and immediately bounds the scope with an explicit inclusion/exclusion list — all files, installed packages and settings, but not memory or running programs. That exclusion is the key distinction an agent needs and is not something the name or title conveys.

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 two concrete when-to-use conditions: before a risky change, and to seed future sandboxes via from_snapshot. It also resolves the no-sandbox_id case ("the current sandbox is used"). It stops short of contrasting with the sibling clone_sandbox, which also derives a new sandbox from existing state, so the agent must infer that boundary.

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