Skip to main content
Glama

List the saved copies

save_snapshots
Read-only

Lists all available save snapshots newest first with their age in seconds, omitting unreadable ones so you can choose a restorable save state.

Instructions

Every snapshot on this machine, newest first, with its age in seconds.

A snapshot whose manifest cannot be read is omitted rather than listed as empty, because save_restore refuses it for the same reason: putting back nothing and reporting success is the worst available outcome.

restore_state says what the last restore left: "mixed" means it failed partway and the save on disk is half-restored.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_snapshots"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
rootYes
snapshotsYes
restore_stateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.7.0
    • addedOutput schema / $defs / RestoreStateOut
      Added value: +{
      +  "properties": {
      +    "from": {
      +      "title": "From",
      +      "type": "string"
      +    },
      +    "state": {
      +      "title": "State",
      +      "type": "string"
      +    },
      +    "undo": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Undo"
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "from",
      +    "undo"
      +  ],
      +  "title": "RestoreStateOut",
      +  "type": "object"
      +}
    • addedOutput schema / properties / restore_state
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/RestoreStateOut"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "snapshots",
      -  "root"
      -]New value: +[
      +  "snapshots",
      +  "root",
      +  "restore_state"
      +]
  2. First observedv0.6.3

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnlyHint/destructiveHint annotations, the description discloses ordering (newest first), the age field's unit, and a non-obvious filtering rule — snapshots with unreadable manifests are omitted rather than returned empty — with the rationale tied to `save_restore` refusing them. That is genuine behavioral context an agent could not get from the schema; it does not discuss scope limits or cost, but 'every' implies no pagination.

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?

The essential facts are front-loaded in the first line: scope, ordering, and units. The second paragraph earns its place by explaining the omission rule, but the closing clause about 'putting back nothing and reporting success being the worst available outcome' is editorial flourish, and the third paragraph is about a neighboring tool rather than this one.

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?

With an output schema present, return structure need not be described, and annotations already cover the safety profile. What the description must supply — ordering, unit of age, and the exclusion behavior — is all present, leaving only minor gaps such as whether listing is bounded in size.

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?

The tool takes zero parameters, so there is no parameter semantics to explain; the baseline for a parameterless tool applies. The description correctly spends no words on inputs.

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?

The description states a concrete resource and scope: 'Every snapshot on this machine, newest first, with its age in seconds', which unambiguously identifies an enumeration operation with defined ordering and units. It never explicitly contrasts itself with the sibling `save_snapshot` (which presumably creates one), so sibling differentiation is left to the reader to infer from 'every'.

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?

Usage is implied rather than stated: the reader can infer this is how you inspect available snapshots, and the note that unreadable snapshots are omitted hints at what to expect before attempting a restore. There is no explicit 'use this when X, not Y' routing, and the `restore_state` paragraph describes a sibling's semantics rather than telling the agent when to call this tool.

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