Skip to main content
Glama

restore

Roll a project back to a checkpoint and remove files added since then. A safety checkpoint is created first so the action can be undone.

Instructions

Roll the project back to a checkpoint. Files added since are removed. A safety checkpoint is taken first, so a restore can itself be undone.

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": {
      "checkpoint_id": "<checkpoint_id>"
    },
    "name": "restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkpoint_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that files added since the checkpoint are deleted (a destructive effect), and that a safety checkpoint is taken first so the operation is itself reversible. It stops short of stating failure modes such as an unknown or stale checkpoint_id.

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, zero filler, with the destructive effect and its safety mitigation front-loaded in that order.

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?

An output schema exists, so return values need not be explained, and the description adequately covers the destructive/reversible behavior. The remaining gap is only the undocumented checkpoint_id origin, minor for a one-parameter tool.

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% for the single required checkpoint_id, and the description never explains what a checkpoint id is or how to obtain one; "checkpoint" in the prose only loosely connects to the parameter, so it adds little beyond the schema.

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?

"Roll the project back to a checkpoint" gives a specific verb and resource, and its rollback semantics are plainly distinct from the sibling create/list tools (checkpoint, list_checkpoints) without needing to name them.

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?

The description implies usage by describing the rollback effect, but never states a when-to-use condition, prerequisites (a checkpoint must already exist), or when an alternative would be preferable.

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