Skip to main content
Glama

Save a saved snapshot

save_snapshot

Freeze a sandbox's current state under a name as a saved snapshot, then poll its status until it settles at ready or failed.

Instructions

Save a saved snapshot. Freeze a sandbox's current state under a name (boat snapshot <id> <name> in the CLI). Answers 202 immediately with the snapshot in saving; a running sandbox takes a fresh capture first, which can run minutes. Poll GET /saved-snapshots/{name} until the status settles at ready or failed. Reusing one of your existing names replaces that snapshot's artifact once the new save is ready.

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": {
      "sandboxId": "<sandboxId>",
      "name": "<name>"
    },
    "name": "save_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName to save under. 1-63 lowercase letters, digits, or dashes, starting with a letter or digit. Reusing one of your existing names replaces that snapshot's artifact. `latest`, `tree`, `pull`, `rm`, `save`, `current`, `self`, and `new` are reserved.
sandboxIdYesThe sandbox whose current state to freeze.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior1/5

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

The description adds strong operational detail: 202 immediate return, saving status, a fresh capture that can take minutes, and polling until ready or failed. However, it also discloses that reusing a name replaces an existing snapshot artifact, which is a destructive overwrite while destructiveHint is false. That is an annotation contradiction.

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 four sentences are compact and front-load the purpose, async behavior, and polling guidance. The opening 'Save a saved snapshot' is slightly tautological but not costly.

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?

For an async mutation with no output schema, it covers the immediate 202, transient status, long-running capture, polling endpoint, and name-reuse effect. Nothing essential is missing for invoking and tracking the save.

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?

Both parameters have full schema descriptions, including the name reuse rule and reserved names, so the description adds little parameter-specific meaning beyond the schema. Its additional details are operational behavior, not parameter semantics.

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 description gives a specific verb ('save'/'freeze') and resource (a sandbox's current state saved under a name), plus the CLI equivalent. It is clear what the tool creates, although it does not explicitly contrast itself with get/delete/list saved-snapshot siblings.

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?

It explains the save flow and how to poll status, but it never states when to choose save_snapshot over siblings like get_saved_snapshot or create_snapshot_share, nor any when-not conditions. Usage is implied rather than explicitly scoped.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.