Skip to main content
Glama

Save an in-session snapshot

save_state

Stores the complete game state under a named snapshot to branch playthroughs: test one path, reload, then try another. Works natively with SugarCube.

Instructions

Save the full game state under a name so you can branch: save -> try a path -> load_state -> try another path. Supported natively by SugarCube; other formats report unsupported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoSnapshot name (default "default").
game_idYesSession id returned by open_game.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral burden. It usefully discloses format support: SugarCube is native and other formats 'report unsupported', which tells the agent about failure behavior. However it omits whether saving overwrites an existing name, where snapshots persist, and whether the operation is reversible beyond the implied load_state pairing.

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 compact sentences, front-loaded with the core action and immediately followed by the branching rationale. No filler, and the format-support caveat is placed where it is most useful.

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?

For a two-parameter tool with no output schema, the description covers purpose, workflow, and a compatibility caveat, which is nearly everything needed to invoke it. It leaves minor gaps around overwrite behavior and persistence, but nothing that would cause a mis-call.

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 100%, with both name (default \"default\") and game_id documented inline, so the schema already does the heavy lifting. The description mentions saving 'under a name' but adds no syntax, naming-convention, or collision semantics beyond what the schema provides.

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 ('Save the full game state under a name') and distinguishes itself from the load_state sibling by pairing with it in a branching workflow. An agent can immediately tell what the tool produces and how it differs from related state tools.

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?

The 'save -> try a path -> load_state -> try another path' sequence gives explicit usage context and names the companion tool. It also flags a boundary condition (only SugarCube is natively supported), though it does not exhaustively state when not to save or how this compares to restart/back.

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