Skip to main content
Glama

Snapshots

snapshot
Destructive

action "create": snapshot everything now (code, databases, data; label optional). action "restore": go back to a snapshot (name from snapshot_list); scope code (default), database, data or all, for env preview (default) or production; needs confirm: true and the snapshots:restore permission. The state being replaced is kept, so a restore can itself be undone. action "undo": take back the last change in one call: the preview goes back to the newest snapshot taken before a change (by fs_write, fs_edit, exec or a pull), scope code by default, and the files it reverts are listed; confirm: true is needed only when that is more than 20 files; undo again walks back one more change (undo of code needs only write access, like the edit it takes back; scope database, data or all needs the snapshots:restore permission).

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": {
      "project": "<project>",
      "action": "<action>"
    },
    "name": "snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNopreview
nameNoSnapshot to restore (from snapshot_list). On create, taken as the label.
labelNo
scopeNo
actionYes
confirmNo
projectYesProject slug or id.
idempotency_keyNoAny unique string; a repeated call with the same key has no second effect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description goes well beyond them: it discloses that the replaced state is retained so a restore is itself reversible, that confirm: true is mandatory for restore, and that undo only requires confirmation above 20 files, plus the differing permission requirements for code versus database/data/all scopes. It does not explain what the confirm prompt or return payload looks like, which is the remaining gap for a destructive 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?

Structuring by action name makes it scannable and the critical facts (defaults, confirm requirements, permissions) are front-loaded within each action block. It is a single dense run-on paragraph with nested parentheticals for undo, which costs a little readability but contains no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, three-action destructive tool with no output schema, the definition covers action semantics, defaults, confirmation rules, permission gates and undo's scope of effect. The remaining omissions are minor: `project` and `idempotency_key` semantics live only in the schema, and the description never says what a successful call reports back.

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 description coverage is only 38%, and the description compensates by giving meaning to the undocumented parameters: `label` is optional on create and is the snapshot name on restore, `name` must come from snapshot_list, `scope` has a code default and specific permission implications, `env` defaults to preview, and `confirm` has an explicit threshold. Only `project` and `idempotency_key` are left to the schema's own descriptions, so the combined picture is nearly complete.

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 description opens with a specific verb per action ("create", "restore", "undo") against a named resource (snapshots of code, databases, data), and explicitly separates create-everything-now from roll-back and from take-back-last-change. It also distinguishes itself from the sibling snapshot_list by naming it as the source of the `name` value, so an agent can route correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each action carries its own when-to-use context: create for a point-in-time capture, restore to return to a named snapshot obtained from snapshot_list, undo to walk back one change made by fs_write, fs_edit, exec or a pull. It also states prerequisites and the conditions that select defaults (scope code by default, env preview by default) and the permission gate for database/data/all scope.

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