Skip to main content
Glama

studio_restore

Restore a project to an earlier revision by creating a new revision, preserving all existing history and deleting nothing.

Instructions

Non-destructive undo: creates a NEW revision equal to an earlier one. Nothing is deleted.

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>",
      "revision": "<revision>",
      "toRevision": "<toRevision>"
    },
    "name": "studio_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
authorNo
revisionYes
projectIdYes
toRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, so 'nothing is deleted' partly restates what they say. The genuinely additive detail is that the restore is additive: it creates a NEW revision equal to the earlier one, which tells the agent the history is extended rather than rewound. It says nothing about permissions, whether the current state remains recoverable, or idempotency, even though annotations mark the tool as non-idempotent.

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?

Two short sentences, with the core guarantee (non-destructive, new revision, nothing deleted) front-loaded. No filler and no redundant preamble.

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 mutation tool with no output schema and 0% schema coverage, the definition covers the safety story well but leaves the parameter contract and post-call state under-specified. An agent would still need to guess which revision field is the source and which is the target.

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?

Schema description coverage is 0% across four parameters, so the definition must compensate and does not. It never explains projectId, author, or the critical distinction between 'revision' and 'toRevision'; 'equal to an earlier one' only faintly gestures at toRevision, leaving the most error-prone parameter pair 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 action and resource: it restores a project to an earlier revision, framed as a non-destructive undo. The verb and effect are unambiguous, but the description never names a sibling tool, so an agent must infer on its own how this differs from studio_history or studio_diff.

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?

'Non-destructive undo' implies when to reach for it (reverting changes without losing data), yet there is no explicit when-not guidance and no pointer to alternatives such as studio_history for inspection or studio_apply for forward changes. Usage is implied rather than directed.

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