Skip to main content
Glama
Tetragon
by wckdboy

restore_revision

Restore an earlier project snapshot as a new revision without deleting existing history; use expected_revision to guard against concurrent edits.

Instructions

Restore an earlier project snapshot as a new revision; preserves the history being rolled back.

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_id": "<project_id>",
      "revision": "<revision>",
      "expected_revision": "<expected_revision>"
    },
    "name": "restore_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionYes
project_idYes
expected_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It does valuable work by disclosing that the restore creates a new revision and preserves the history being rolled back (i.e., it is non-destructive), but it says nothing about permissions required, what happens to the current head revision, or how a stale expected_revision is handled.

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?

A single compact sentence with the core behavior front-loaded and no filler. The semicolon clause reinforces the non-destructive guarantee rather than restating the name.

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

Completeness2/5

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

For a destructive-capable mutation with no annotations, no output schema, and three undocumented required parameters, the definition is too thin. It establishes intent but not the operational details (locking behavior, failure modes, return shape) an agent needs to invoke it correctly.

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

Parameters2/5

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

All three parameters have 0% schema description coverage, so the description must compensate and largely does not. "revision" is loosely echoed by "an earlier project snapshot," but project_id is unaddressed and expected_revision — clearly a concurrency/optimistic-locking token — is never explained, which is a consequential omission for a mutation tool.

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?

The description pairs a specific verb ("Restore") with a specific resource ("an earlier project snapshot") and states the effect ("as a new revision"). This is clear enough to distinguish it from generic project mutation tools, though it does not explicitly contrast with the similarly named sibling restore_family_revision.

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?

Usage is only implied: an agent can infer it applies when rolling a project back to an earlier snapshot. There is no explicit statement of prerequisites, when to prefer this over restore_family_revision, or what to do when a rollback is inappropriate.

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