Skip to main content
Glama

Analyse a save file

re_save
Read-onlyIdempotent

Inspect game save files by peeling compression, encoding, and serialization layers, then list fields with types and guessed roles; compare two saves or generate a JSON schema and SaveData classes.

Instructions

Peels the open layers of a save file (gzip/zlib, base64, LZ-String as RPG Maker MV/MZ uses, JSON, XML, INI/ConfigFile, Godot store_var) and lists every field with type, sample and a guessed role (health, currency, score, position, progress, collection, time, version, identity, integrity, rng, settings). Checksum fields are verified by recomputing md5/sha1/sha256/crc32 over the save without that field; binary saves are checked for CRC32 trailers/headers and get record strides and strings. compare: lists the fields that changed between two saves, the fastest way to learn which field is which. action:"schema" writes a JSON schema plus SaveData.gd and SaveData.cs with the same field names, to port the save format. Encrypted, XOR-obfuscated, .NET BinaryFormatter and pickle content is reported, never decoded.

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": {
      "file": "<file>"
    },
    "name": "re_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoschema: folder for the files (default workspace/saves).
fileYesThe save file.
limitNoMax fields/changes (default 400).
actionNoinspect (default) or schema (write schema + data classes).
compareNoA second save of the same game to diff against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations it discloses concrete behavior: checksums are verified by recomputing md5/sha1/sha256/crc32 over the save minus that field, binary saves get CRC32 trailer/header checks plus record strides and strings, and encrypted/XOR-obfuscated/.NET BinaryFormatter/pickle content is 'reported, never decoded' — a genuinely useful boundary. One tension worth noting: action:"schema" writes files (JSON schema, SaveData.gd, SaveData.cs) while readOnlyHint=true, though the writes are new, non-destructive, idempotent artifacts rather than mutations of the input save, so it does not rise to a real contradiction.

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 capability statement and the most important limitation (never decodes encrypted content) are front-loaded, and the mode-specific guidance follows in a logical order. It is a single dense paragraph with a long parenthetical role list that borders on over-specification, but essentially every clause carries information an agent can use.

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?

There is no output schema, and the description compensates fully: it states that fields are listed with type, sample and guessed role, that compare returns changed fields, and that schema mode writes specific artifacts. For a five-parameter analysis tool with an enumerated action, an agent has everything needed to choose a mode and interpret the result.

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; the description earns above that by explaining the purpose of `compare` (fastest way to learn which field is which) and `action:"schema"` (port the save format via generated data classes). The `out` and `limit` parameters are left to the schema, which documents them adequately.

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 opens with a concrete verb+resource ('Peels the open layers of a save file') and enumerates the exact container formats handled (gzip/zlib, base64, LZ-String, JSON, XML, INI, Godot store_var), plus the field-level output it produces. That is far more specific than a restated title. It never names or contrasts a sibling tool (e.g. re_decode, re_compare), which keeps it out of the top band.

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 gives explicit conditions for its non-default modes: 'compare:<second save> ... the fastest way to learn which field is which' and 'action:"schema" ... to port the save format'. That is real routing guidance an agent can act on. There are no exclusions or explicit alternatives, so it falls short of the 5 band.

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