Skip to main content
Glama

inspect_save

Reads a Diablo II .d2s character save without altering it, exposing header, checksum status, stats, skills, and item details for character inspection.

Instructions

What a Diablo II character save (.d2s) on this machine holds, read without changing it: the header (version, size, whether the checksum matches), name, class, level, hardcore/expansion/ladder/died flags, acts completed and where the character last was, the mercenary, the stats section (strength, life, experience, gold...), points in each class skill, and the items: where each is, simple or full, quality, item level, ethereal, sockets and what fills them, runeword, personalized, quantity, durability. path: the .d2s file. version: the table set to read it with (a version imported with python -m d2mcp.tables, e.g. '1.13c', a mod's name, or 'd2r'); left out, the default Legacy set (or 'd2r' for a Resurrected save) is used when loaded. A mod's save needs the mod's own tables: its itemstatcost.txt sets the stat widths. item_detail: list each item's properties (stat name=value), its affix ids and set or unique row. item_start: skip this many items (the reply lists up to 60 at a time). Reads Legacy version 96 saves (the layout 1.14d writes) completely. Resurrected version 105 saves: header (with the flags word raw), stats and skills, and the item count only; this reader doesn't decode their item records. Other versions, and D2RLoader's extended format: the signature, size and checksum only. Affix ids and the runeword field are given as stored, not as names.

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": {
      "path": "<path>"
    },
    "name": "inspect_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
versionNo
item_startNo
item_detailNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 behavioral load and does so well on coverage limits: Legacy v96 is fully read, Resurrected v105 yields header/flags word/stats/skills/item count only, other versions and D2RLoader's extended format yield only signature, size and checksum. It also discloses pagination ('up to 60 at a time') and that affix ids and runeword are returned as stored, not as names. Missing: file-size or error behavior for malformed/huge saves, and whether it may write any caches.

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?

Front-loaded with the purpose, then parameters, then version coverage, then caveats—a logical order with no filler sentences. It is long, and the long enumeration of returned fields is partly redundant given an output schema exists, which keeps it from a 5.

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?

Covers what an agent needs to call it correctly on a four-parameter tool with zero annotation or schema-description support: purpose, every parameter, version-specific decoding limits and pagination. Return-field detail is already available via the output schema, so its remaining gaps are minor.

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 description coverage is 0%, yet the description explains all four parameters: path is the .d2s file, version names the table set with concrete example values and the mod caveat, item_detail enables per-item properties plus affix ids and set/unique rows, and item_start is an offset tied to the 60-item page size. This more than compensates for the undocumented schema.

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 precise verb and resource ('reads a .d2s save file without changing it') and then enumerates the contents returned down to flags, skill points and item attributes. Nothing else in the sibling list touches save files, so an agent can identify the right tool immediately.

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?

Gives concrete selection guidance for the version parameter: omit it for the default Legacy set or a Resurrected save, supply a table set name like '1.13c' or 'd2r', and note that a mod's save requires that mod's own tables. It does not name an alternative tool or state when not to use this one, but no sibling overlaps its scope.

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