Skip to main content
Glama

mcp_restore_write_snapshot

Restore a file from a saved write snapshot by supplying its snapshot ID; use dry-run to preview changes or confirm to apply the restore.

Instructions

Restore a file from a write snapshot.

Args: snapshot_id: Snapshot id from mcp_list_write_snapshots. confirm: Must be True to restore. dry_run: Preview the restore without changing the target file.

Returns: Restore acknowledgement or a guard payload.

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": {
      "snapshot_id": "<snapshot_id>"
    },
    "name": "mcp_restore_write_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
dry_runNo
snapshot_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the guard mechanism (confirm must be True), the non-mutating preview mode, and that the return may be a guard payload rather than a success. It does not say whether the target file's current contents are overwritten or backed up, nor what permissions are required — a notable gap for a destructive-sounding operation.

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 purpose sentence is front-loaded and the Args/Returns layout is scannable with no filler. The formatting is docstring-style rather than prose, but every line carries information.

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?

An output schema exists, so return detail needn't be elaborated, and the description still sketches the two possible outcomes. For a mutation tool with no annotations, the main remaining omission is the fate of the pre-existing file content and any permission requirements.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: all three parameters are explained — snapshot_id's source, confirm's required True value (implying the default false), and dry_run's preview behavior. No parameter is left semantically undefined.

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+resource pair, 'Restore a file from a write snapshot,' and ties the snapshot_id to mcp_list_write_snapshots, making it clearly distinct from the listing sibling.

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?

It tells the agent where to obtain the snapshot id (mcp_list_write_snapshots), that confirm must be True to actually restore, and that dry_run previews without changes — effectively a recommended safe workflow. It stops short of an explicit 'use this instead of X' exclusion, so it lands at 4 rather than 5.

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

Deploy Server

Other Tools