Skip to main content
Glama

Restore revision

revision_restore
DestructiveIdempotent

Replace the current scene contents with a historical revision, creating a new head revision. This changes the active scene and discards later edits from that active view; prior revisions remain available. Use revision_diff to review changes first and project_get to read the exact current head. A stale currentHeadRevisionId rejects with REVISION_CONFLICT; policy may require interactive approval. Returns a restore job; check job_wait/job_get for the actual terminal state and new revision.

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>",
      "sourceRevisionId": "<sourceRevisionId>",
      "currentHeadRevisionId": "<currentHeadRevisionId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "revision_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoShort description saved with the restored revision.
projectIdYesStable project ID returned by project_create or projects_list.
idempotencyKeyYesStable caller-chosen key for safe retries of this same request.
sourceRevisionIdYesExisting revision whose scene should become the new head.
currentHeadRevisionIdYesCurrent head revision ID used to prevent conflicting restores.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds what is destroyed and what survives ('discards later edits from that active view; prior revisions remain available'), the REVISION_CONFLICT error for a stale head, the approval-policy possibility, and that the call is asynchronous — returning a job whose terminal state must be read via job_wait/job_get.

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 on the active scene, followed by prerequisites, error behavior, and return handling. No filler and no restatement of the title.

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?

There is no output schema, and the description compensates by explaining that a restore job comes back and that job_wait/job_get carry the terminal state and new revision. For a destructive, asynchronous mutation, the agent has everything needed to call it and to follow up correctly.

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 description coverage is 100%, so the parameters are already documented and 3 is the baseline. The description adds meaning beyond the schema by explaining the consequence of a stale currentHeadRevisionId, namely a REVISION_CONFLICT rejection, which turns a bare guard value into an understood conflict check.

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: 'Replace the current scene contents with a historical revision, creating a new head revision.' It also makes clear the operation is a write that moves the head, which an agent can distinguish from revision_diff (comparison) and project_get (read).

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

Usage Guidelines5/5

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

Explicitly routes the agent: 'Use revision_diff to review changes first and project_get to read the exact current head.' It also names the precondition for success, a non-stale currentHeadRevisionId, and warns that policy may require interactive approval, so both when-to-use and when-not are covered.

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