Skip to main content
Glama

Restore a checkpoint

restore_checkpoint

Put this computer back to a saved checkpoint. The entire filesystem and everything installed is replaced by the state it was in then.

THIS DISCARDS WORK. Anything done since that checkpoint — files written, packages installed, commits not pushed anywhere — is gone. Pass keep_current_as to save the current state as its own checkpoint first, which is almost always what you want when you are not certain.

It does NOT delete the checkpoints saved after the one you go back to. They stay listed and restorable, and anything saved from here on branches off the point you returned to — so going back to try a different approach costs nothing but the work not kept.

The computer restarts to do it and is briefly unavailable; any process you left running stops. If it is asleep, the checkpoint is applied the next time it wakes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
checkpointYesCheckpoint id, from list_checkpoints
keep_current_asNoSave the current state under this name before replacing it

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?

With no annotations, the description carries the full behavioral burden and does so richly: entire filesystem and installed packages are replaced, uncommitted work is lost, the machine restarts and is briefly unavailable, running processes die, and a sleeping machine defers the restore until wake. These are non-obvious operational traits an agent must know before invoking.

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?

Front-loads the single most important fact in caps ('THIS DISCARDS WORK'), then proceeds through mitigation, non-destructive nuance, and restart side effects. Every sentence carries unique information; nothing is padding.

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?

For a destructive, restart-triggering operation with no annotations and no output schema, the description covers consequences, mitigation, reversibility of the checkpoint list, and availability impact — everything an agent needs to call it correctly and warn the user.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains the motivation and semantics of keep_current_as ('save the current state as its own checkpoint first'), not just its name. The checkpoint parameter is left to the schema's pointer to list_checkpoints.

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 ('Put this computer back to a saved checkpoint') and immediately names the sibling it is not: create_checkpoint, delete_checkpoint, and list_checkpoints are all implicitly contrasted by the restore semantics. An agent can distinguish it from every other checkpoint tool without opening a schema.

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 frames the decision: this DISCARDS WORK, and 'Pass keep_current_as ... which is almost always what you want when you are not certain.' It also clarifies that later checkpoints survive and future saves branch, so the agent knows returning is cheap. This is exactly the when/when-not guidance the dimension asks for.

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