Skip to main content
Glama

check_strings

Compare a Diablo II: Resurrected mod's string files with the game's own strings to find errors that can crash the game or lose text; warnings flag unintended changes.

Instructions

Check a mod's Diablo II: Resurrected string files against the game's own for mistakes that crash the game or lose its text. Findings are errors (the notes this rests on say it crashes, loses records or collides), warnings (probably unintended) and notes; checks marked heuristic are not from those notes. Args: mod: the mod's data/local/lng/strings folder, a mod folder holding data/local/lng (its strings and strings-legacy are both read), or .json files; a list of paths works. vanilla: the same for the game's own strings, extracted from your install; give all of the files, since the check is only as complete as they are. A next_string_id.txt beside the vanilla strings folder (or in data/local/lng above it) starts the search for a free id. limit: findings shown, 1 to 1000 (default 100); the counts are always complete. Checks: missing-keys (a mod file replaces the game's whole file of that name, so the game's keys it lacks show as keys in game); placeholders (printf-style %d, %s, %+d, %1$s, %*d and the rest differing in number, order or type from the game's string of the same key and language; a missing argument crashes if the game formats the key itself, as it does for some; %% is a literal percent sign and takes no argument); ids (a new key, or an override with a changed id, whose id shares its low 16 bits with another string, since the game matches ids by their low 16 bits; ids above 65,535; a key with different ids in different files; an override whose id differs from the game's); languages (strings missing a language field the mod's files carry, strings changed in enUS that keep the game's text in another language, languages the game has and the mod doesn't, empty or non-text values); duplicate keys the game's file doesn't have. Heuristics, reported as notes or warnings: colour codes cut short, literal backslash sequences, positional and plain placeholders mixed, an override's changed id. Keys are matched ignoring case, as the toolkit does; that isn't verified against the game. Strings the mod leaves exactly as the game has them are not judged. It ends with the next free id, counting up from next_string_id.txt (or one above the highest id below 65,536) and skipping low 16 bits in use. Limits: only keys the game has can be compared, so the placeholders of a new key (and the ones the engine fills in for it) aren't checked. The rules are Nugwa628/d2rAI-toolkit's notes on build 93847, not read from the game. Classic .tbl tables aren't checked. No findings means these checks passed, not that the strings work in game.

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": {
      "mod": "<mod>",
      "vanilla": "<vanilla>"
    },
    "name": "check_strings"
  }
}

Input Schema

NameRequiredDescriptionDefault
modYes
limitNo
vanillaYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so thoroughly: it explains the severity taxonomy, which checks are heuristic in origin, that the rules come from external notes on build 93847 rather than being read from the game, that key matching is case-insensitive and unverified, and that unchanged strings are skipped. It also discloses the completeness caveat that only keys the game has can be compared, and describes the trailing next-free-id output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and organized around Args, Checks, Heuristics, and Limits, and nearly every sentence carries substantive information. However, the prose is dense and run-on, with parenthetical clauses stacked inside sentences (e.g. the severity sentence and the next_string_id explanation), which raises parsing cost for an agent. Length is justified by tool complexity, but tighter phrasing would improve it.

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?

An output schema exists, so return values need not be explained, and the description covers everything else an agent needs: accepted input shapes for both required parameters, the limit semantics, the full check inventory, the heuristic subset, and an explicit Limits section. Caveats such as unverified case-insensitivity and the external provenance of the rules make the tool's trust boundaries clear.

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%, so the description must supply all parameter meaning, and it does: mod and vanilla are described in terms of accepted path shapes (single path, list of paths, folder layouts) plus the critical requirement to supply all vanilla files. The limit parameter gets a range (1 to 1000), a default (100), and the clarification that counts remain complete even when findings are truncated, which is exactly the kind of meaning the bare schema lacks.

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: checking a mod's D2R string files against the game's own for mistakes that crash the game or lose text. It also enumerates the check categories (missing-keys, placeholders, ids, languages, duplicate keys) and the severity model (errors/warnings/notes/heuristics), which clearly distinguishes it from a plain reader like read_strings.

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 strong when-to-use context: the mod argument is scoped to a strings folder, a mod folder with data/local/lng, or .json files, and vanilla must point at the extracted game strings. It also sets expectations ('No findings means these checks passed, not that the strings work in game') and boundaries ('Classic .tbl tables aren't checked'). It stops short of naming an alternative tool to use instead for the excluded cases, so it is clear but not fully routing.

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