Skip to main content
Glama

ParCAD

Restore an earlier version

restore_snapshot
DestructiveIdempotent

Puts a kept version of a project back in the editor, as an ordinary edit the user can undo. Opens the project first if another one is on screen. Like set_script it changes the screen only (save_project writes it to disk), keeps the current text as a snapshot first, and waits for a window to report showing it.

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": {
      "name": "<name>",
      "id": "<id>"
    },
    "name": "restore_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe snapshot's `id`, from `list_snapshots`.
nameYesThe project path, as `list_projects` gives it.
wait_sNoHow long to wait for a window to show it, as in `set_script`.

Output Schema

NameRequiredDescriptionDefault
nameYes
originYes
scriptYes
viewersYes
revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=true) by explaining that the change is an ordinary undoable edit, that the current text is snapshotted before being overwritten, that the effect is screen-only until save_project, and that the tool blocks waiting for a window to report. These are exactly the behavioral facts an agent needs to judge risk and sequencing.

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?

Dense and front-loaded: the core action comes first, then preconditions, then the disk-vs-screen contrast, then the safety snapshot. Every clause carries information, though the single run-on sentence is harder to scan than a bulleted structure would be.

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 no explanation, and the description fully covers side effects, persistence semantics, undo path, precondition behavior, and blocking. Nothing an agent needs in order to invoke this destructive operation safely is missing.

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?

Schema coverage is 100%, so all three parameters are already documented in the schema, including where id and name come from. The description adds only an oblique reference to waiting for a window, which lightly reinforces wait_s but supplies no new syntax or format detail. Baseline 3 applies.

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 ('Puts a kept version of a project back in the editor') and immediately distinguishes it from disk-writing siblings (save_project) and from screen-only siblings (set_script). An agent knows exactly what this does without opening the schema.

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?

Explicitly frames the tool as an in-memory edit and names save_project as the alternative for persisting to disk, which is the key routing decision. It also notes the project is opened first if another is on screen, a precondition an agent must know. It stops short of exhaustive when/when-not guidance versus open_project or list_snapshots, so not a 5.

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.