Skip to main content
Glama

Put a saved copy back

save_restore
Destructive

Restores a world and character snapshot to disk, first copying the current state to auto-before-restore so the destructive overwrite can be undone.

Instructions

Overwrite the world and characters with a snapshot.

Args: label: The snapshot to put back. world: WINDOWS path to the .wld. Defaults to the world the snapshot holds, and must be that world when given. Refused without it when the last session from this server loaded a different world: the restore would leave the world that run changed as it is.

This DESTROYS what is on disk now, so it saves that first: the state being overwritten is copied to auto-before-restore and returned as undo, which save_restore accepts like any other label. A restore aimed at the wrong snapshot is therefore recoverable rather than final.

The undo is NOT re-taken when that would overwrite the original with nothing unique: after a restore that failed partway (retrying keeps the original in auto-before-restore), or when the save is still exactly what the last restore put back (undo is then that snapshot's label, and the earlier undo survives). undo_kept says which.

Both cases are checked against the files on disk. If the save holds files no snapshot holds while the undo must be kept (the game was played after a failed restore), or while restoring auto-before-restore itself, this refuses and names them: take save_snapshot first, then restore again.

Refuses while the game is running, and refuses a label that does not exist by listing the ones that do.

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": {
      "label": "<label>"
    },
    "name": "save_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYes
worldNo

Output Schema

NameRequiredDescriptionDefault
sizeYes
undoYes
filesYes
labelYes
removedYes
undo_keptYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.7.0
    • addedInput schema / properties / world
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "World"
      +}
    • addedOutput schema / properties / undo_kept
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Undo Kept"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "label",
      -  "files",
      -  "size",
      -  "undo",
      -  "removed"
      -]New value: +[
      +  "label",
      +  "files",
      +  "size",
      +  "undo",
      +  "removed",
      +  "undo_kept"
      +]
  2. First observedv0.6.3

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description goes well beyond that: it explains exactly what gets destroyed, that the overwritten state is copied to `auto-before-restore` and returned as `undo`, the precise rules under which the undo is NOT re-taken, the `undo_kept` signal, the on-disk file check that can cause a refusal, and the game-running guard. This is unusually rich disclosure of side effects, recovery paths, and failure modes.

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

Conciseness3/5

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

The critical action is front-loaded and each sentence conveys real behavior, but the undo-retention rules are dense and run long for a two-parameter tool, with the Args-style formatting breaking the prose flow. Nothing is clearly disposable, yet the middle paragraph could be tightened without losing semantics.

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 two-parameter tool with an output schema, the description covers the mutation's consequences, the recovery mechanism, the returned fields (`undo`, `undo_kept`), and all refuse conditions. An agent has everything needed to call it safely and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the load, and it does: `label` is defined as the snapshot to put back, and `world` is defined as a WINDOWS path to the `.wld` that defaults to the snapshot's world, must match it when supplied, and is required in the specific case where the last session loaded a different world. That is meaning the bare 'Label'/'World' titles do not convey.

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 opening line 'Overwrite the world and characters with a snapshot' gives a specific verb plus resource and scope, and the sibling name `save_snapshot` is used later in a way that makes the save-vs-restore split unambiguous. An agent can tell this apart from the snapshot-creating tools 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 Guidelines4/5

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

It states explicit preconditions and refusals (refuses while the game is running, refuses nonexistent labels by listing valid ones) and names the alternative action when the check fails ('take `save_snapshot` first, then restore again'). It lacks a plain 'use this to restore, use save_snapshot to create' framing, but the conditional routing is strong enough for a 4.

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