Skip to main content
Glama

Restore saved version

restore_version
Destructive

Replace current project content with this version and save a backup. Requires Pro. Obtain explicit affirmative conversation consent for this project and version before setting confirmed:true. The server validates the flag, not the conversation.

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": {
      "projectId": "<projectId>",
      "versionId": "<versionId>",
      "expectedRevision": "<expectedRevision>",
      "confirmed": "<confirmed>"
    },
    "name": "restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedYes
projectIdYes
versionIdYes
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description adds the important detail that prior content is backed up, that Pro is required, and that the server only validates the confirmed flag rather than the conversation — a meaningful anti-misuse warning. It does not describe the failure mode on revision mismatch or what the response contains.

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?

Three tight sentences, front-loaded with the destructive effect and backup mitigation before the precondition and the consent caveat. Every clause carries operational weight, with no restatement of the title.

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

Completeness3/5

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

For a destructive, non-idempotent mutation with no output schema, the description covers impact, backup, tier gating, and consent, which is substantial. The gaps are meaningful: expectedRevision semantics and conflict behavior, and the relationship to restore_project, are left for the agent to guess.

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 description coverage is 0%, so the description must carry all parameter meaning, and it thoroughly explains only `confirmed` (const true, requires explicit consent, server-side validation). projectId, versionId, and `expectedRevision` receive no explanation, leaving the optimistic-concurrency contract — arguably the most error-prone part of a destructive restore — entirely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Replace current project content with this version') plus a side effect ('save a backup'), which is far more informative than the title 'Restore saved version'. It does not, however, distinguish itself from the sibling restore_project, so an agent must infer the project-level vs version-level split.

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

Usage Guidelines3/5

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

Gives concrete prerequisites — Pro subscription and an affirmative-consent protocol — which is genuine when-to-use guidance. It lacks any exclusion or comparison against restore_project, and does not say what to do when the Pro requirement or consent is unmet.

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