Skip to main content
Glama

In-session snapshots (save / load / list)

snapshot

Save, restore, or list named game states to explore branches and compare outcomes without replaying from the start.

Instructions

Branch exploration: save stores the current state under a name, load restores it, list shows what exists. Native on SugarCube, Chapbook and Snowman; Harlowe reports unsupported.

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": {
      "action": "<action>"
    },
    "name": "snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoSnapshot name (default "default"; required for save/load).
actionYessave, load or list.
formatNo"text" (default) or "json".
game_idNoSession id from open_game. Omit when a single game is open.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does contribute real behavior: engine support varies and Harlowe reports unsupported. It leaves important mutation semantics unstated — whether saving under an existing name overwrites a prior snapshot, whether load discards the current unsaved state, and that snapshots are in-session only (implied by the title, not the description).

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: purpose and sub-actions first, environment constraint second. No filler, no restating of the tool name, and the caveat is placed where it will be read before invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no annotations and no output schema, the description covers purpose and engine compatibility but omits overwrite/reversibility behavior and what save or load returns. Adequate to attempt the call, but an agent could destroy an existing snapshot or unsaved state without warning.

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 coverage is 100%, so every parameter is already documented in the schema, and the tool has two enums. The description only loosely ties 'name' to save/load ('under a name') and adds nothing about the format or game_id parameters. Baseline 3 is appropriate when the schema does this much work.

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 names the resource (saved state) and spells out all three actions concretely: 'save stores the current state under a name, load restores it, list shows what exists.' An agent can immediately tell which action does what. It does not differentiate against siblings like session or play, which likely hold related state, so it stops short of a 5.

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?

'Branch exploration' situates the tool in a workflow (trying alternate story branches), and the engine note tells the agent when the tool is unavailable (Harlowe). However, there is no explicit guidance on when to snapshot versus using session save or other state tools, and no stated prerequisites such as needing an open game.

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