Skip to main content
Glama

Restore version

restore_version
Destructive

Put some screens (or notes, sections) back as they were in a version of the file (list_versions gives the ids), without touching the rest of the board: their content and properties become the version's, a screen deleted since comes back (moved to a free spot if something now stands there), a screen the version did not have is removed. The file is saved in its history first, and the restore is recorded as a version: people can undo it from the version history. Restoring the whole file is done by a person, in the app.

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": {
      "fileId": "<fileId>",
      "versionId": "<versionId>",
      "frameIds": "<frameIds>"
    },
    "name": "restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYes
frameIdsYesScreens (frames), notes or sections to put back as they were.
versionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructiveHint=true; the description goes far beyond that by disclosing the exact blast radius (only the listed frames change, the rest of the board is untouched), what happens on conflicts (a returning frame is moved to a free spot), that extra frames are removed, and that the file is snapshotted and the restore itself versioned so it can be undone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: scope, then per-item semantics, then safety/undo behavior, then the exclusion. Sentences are long but each carries a distinct fact, and nothing repeats the schema or annotations.

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 a destructive mutation with no output schema, the description covers reversibility, partial scope and conflict handling well. Minor gaps remain: the 50-item cap and failure modes (e.g. an unknown or expired versionId) are not mentioned.

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 only 33% (only frameIds is documented in the schema), so the description must compensate. It does: it clarifies that frameIds accepts screens, notes or sections, and that versionId values come from list_versions. fileId is never discussed, leaving one required parameter's meaning implicit.

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: put screens, notes or sections back to a prior version's state. It immediately sharpens scope (partial restore, not whole-file) and names list_versions as the id source, so an agent can distinguish it from save_version or the version-listing siblings.

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 gives a prerequisite (version ids come from list_versions) and an explicit exclusion (whole-file restore is a person's job in the app, not this tool). It stops short of contrasting with other write-path siblings such as save_version or create_branch, so guidance is strong but not exhaustive.

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.