Skip to main content
Glama

read_strings

Look up Diablo II and Resurrected text strings in .tbl, MPQ, or JSON files by key, number, or search term; see results, counts, language, and lookup priority.

Instructions

Look up the game's text strings in files on the local disk: Diablo II's string tables (string.tbl, expansionstring.tbl, patchstring.tbl) or Diablo II: Resurrected's JSON string files. source: one path or a list of paths, each a .tbl file; an MPQ archive (its data\local\lng<language>
string.tbl, expansionstring.tbl and patchstring.tbl are read, whichever it holds: give d2data.mpq, d2exp.mpq and patch_d2.mpq together for the full set); a folder holding those .tbl files (or a mod folder with data/local/lng// inside); a folder of Resurrected's data/local/lng/strings/*.json; one such .json; or a .json written by tbl_to_json. key: a string key (case-sensitive, e.g. 'hax' or 'ModStr1a'), or a string number (e.g. 22000, or an id in Resurrected's files). search: text to find in keys and strings, case ignored. limit: results shown for search, 1 to 100 (default 20). With neither key nor search: what was loaded, with counts. language: for MPQs and mod folders the language folder (default eng; also deu, fra, esp, ita, pol, kor, chi, jpn...); for Resurrected the JSON field (default enUS; also deDE, frFR, zhTW...). For the classic tables the reply gives the order the game looks a key up in (patchstring, then expansionstring, then string; the first that has the key wins), which file each result is from, its number (string.tbl counts from 0, patchstring.tbl from 10000, expansionstring.tbl from 20000) and any lower-priority file that also defines the key. When several sources hold a file of the same name, the last one listed is the one used, as a patch or mod archive replaces the base game's. Line breaks show as \n; colour codes show as ÿc plus a character. The strings are those of the files given: say which game version, patch or mod they belong to from where the files came from; Resurrected's files are Resurrected only.

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": {
      "source": "<source>"
    },
    "name": "read_strings"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
limitNo
searchNo
sourceYes
languageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses the classic-table lookup order (patchstring, then expansionstring, then string, first match wins), reports which file each hit came from, and flags lower-priority duplicates. It also explains that later-listed sources override earlier ones (patch/mod archives replacing base game) and notes the Resurrected-files-are-Resurrected-only caveat.

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?

Sentences are dense but almost every clause carries operational information, and the encoding details (\n for line breaks, ÿc plus a character for colour codes) are genuinely load-bearing. The weakness is structural: parameters are named inline in one prose wall rather than separated, making it slower to scan than it needs to be.

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?

Although an output schema exists and return values need not be explained, the description still previews the reply shape (lookup order, source file, string numbers counting from 0/10000/20000, shadowed duplicates), which is the right amount for a five-parameter, multi-format reader. An agent has everything needed to pick a source, choose key versus search, and interpret the result.

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 meaning and it does: source is spelled out across five accepted shapes (single .tbl, MPQ with internal paths, folder of .tbl, Resurrected JSON folder or single file, tbl_to_json output), key is described as case-sensitive string or numeric with examples, limit is bounded 1-100 with a default of 20, and language defaults are given per format (eng vs enUS). This is meaningfully richer than the bare schema titles.

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?

The description opens with a specific verb and resource: 'Look up the game's text strings in files on the local disk,' and immediately enumerates the concrete file families (classic .tbl tables vs. Resurrected JSON). It distinguishes itself from the sibling tbl_to_json by naming it as a producer of one accepted input, so an agent can tell which tool reads versus converts.

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 concrete operating modes: with neither key nor search it reports what was loaded with counts; key does an exact case-sensitive lookup; search does a case-insensitive scan capped by limit. What is missing is any explicit statement of when to prefer this over check_strings or read_d2r_json, so alternatives are implied rather than named.

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