Skip to main content
Glama

Restore checkpoint

restore_checkpoint
Destructive

Returns the site to an earlier restore point (list_checkpoints). Changes made since the last restore point become a restore point of their own first, so nothing is lost. On a site imported from GitHub the restore is pushed to the user's own Git, which needs Starter and up (get_project ownGit): on Free it answers code_export_plan and nothing is restored.

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>",
      "commit": "<commit>"
    },
    "name": "restore_checkpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
commitYes
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds the crucial mitigating behavior: pending changes are snapshotted as their own restore point first, so nothing is lost. It also discloses the plan gate (Starter+ via get_project ownGit) and the exact failure code on Free, which an agent cannot infer from annotations or schema.

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

Conciseness4/5

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

Three sentences, front-loaded with the action and the safety guarantee before the plan-gating caveat. The final sentence is dense with internal jargon (code_export_plan, get_project ownGit) but every clause carries actionable information, so there is little waste.

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, two-parameter mutation with no output schema, the description covers the important ground: reversibility, plan prerequisites, and the no-op failure mode. It stops short of saying what a successful call returns or whether the operation is synchronous, but the core decision-relevant context is present.

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?

With 50% schema description coverage, the description partially compensates by tying the restore target to list_checkpoints output, implying the commit value comes from that listing. However, it never states that the commit parameter is a git SHA or how it relates to the checkpoint identifier, leaving the second parameter's semantics to the regex pattern.

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?

The description opens with a specific verb and resource ("Returns the site to an earlier restore point") and immediately names the sibling used to obtain the target (list_checkpoints). An agent can distinguish this from save_checkpoint without opening either schema, since the direction of the operation is unambiguous.

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 explicitly routes the agent to list_checkpoints for discovering restore points and clearly states the condition under which the call does nothing useful (Free plan on a GitHub-imported site returns code_export_plan). It does not explicitly contrast with save_checkpoint, so the inverse operation is only implied.

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