Skip to main content
Glama

Permanently delete all snapshots of a sandbox

delete_sandbox_snapshots
DestructiveIdempotent

Permanently deletes all unpinned snapshots for a sandbox while preserving the sandbox and its saved snapshots. Use it to clear obsolete snapshot data before restores or forks.

Instructions

Permanently delete all snapshots of a sandbox. Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its saved snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set X-Ascii-Confirm-Delete to the sandbox id.

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

Input Schema

NameRequiredDescriptionDefault
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the destructiveHint/idempotentHint annotations: irreversibility, that only unpinned snapshots are affected, that snapshots vanish from lists/restores/forks immediately while data purge happens asynchronously, and that an X-Ascii-Confirm-Delete header must carry the sandbox id. The header requirement is especially valuable since it is not in the input schema, though the description does not say what happens if the header is missing or wrong.

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 the destructive action, then preservation scope, then side effects, then the confirmation header — a sensible order with no filler. Minor redundancy between 'permanently delete all snapshots' and 'irreversible deletion of every unpinned snapshot,' and the 'all snapshots' framing sits slightly awkwardly against the unpinned-only qualifier.

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 a single-parameter destructive tool with no output schema, the definition covers everything an agent needs: irreversibility, what survives, timing of visibility vs. data purge, and the required confirmation header.

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 sandboxId pattern and format are already documented. The description adds non-schema meaning by tying the id to a separate confirmation header, which an agent would otherwise not know to send.

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 with explicit scope: 'Permanently delete all snapshots of a sandbox.' It then immediately bounds that scope ('The sandbox itself and its saved snapshots stay'), which separates it from delete_sandbox and delete_saved_snapshot without needing to name them.

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?

The description makes the selection condition clear: this is for purging every unpinned snapshot at once, and pinned snapshots plus the sandbox itself survive. It stops short of routing the agent to a single-snapshot alternative or stating explicit when-not cases, so it is clear context rather than full alternative guidance.

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