Skip to main content
Glama

lint_tables

Validate Diablo II Legacy mod data tables to find broken references, structural errors, duplicate keys, invalid values, and limit violations, with severities and line-level details.

Instructions

Find what is broken in a set of Diablo II data tables (Legacy 1.09 to 1.14d; not Resurrected). mod: a folder on this machine holding the .txt files (a mod's data/global/excel, or a folder containing it) or a table version imported into the data folder. like: the vanilla version the mod is built on, e.g. '1.13c'; give it whenever you can, because it picks the rule set (1.09 or 1.10+), stands in for tables the mod doesn't ship so references into them can be checked, and turns on the column and 'Expansion' row comparisons. file limits the report to one table (references are still resolved against the whole set). limit is the most findings listed (default 150, up to 2000), shared across files so one table's flood can't hide the rest; repeats of one finding are counted, not listed, and when many references into one table fail they are summed up in a line naming that table. Counts per check and per file are always complete. The result is capped at about 40 KB. Each finding gives severity, check, file, line number (the header is line 1), the row's name, the column, the bad value and why. Checks: reference (a cell names a row that doesn't exist: treasure classes, monsters, missiles, states, skills and skill descriptions, sounds, overlays, item codes, item types, properties, stats, sets...), treasure-class (picks that name nothing or a class defined further down, picks after an empty slot, rows after a nameless row), cube (inputs, outputs and their modifiers), duplicate-key, structure (rows with the wrong number of cells, repeated columns), number (text in a number column, values too big for it), length, limit (row counts and value ranges the game enforces), columns (against like: missing, unknown or misspelt columns), expansion (missing 'Expansion' marker rows) and line-endings. Errors are values the game can't use as written; warnings are probably unintended; notes are for information. It reads the tables the way the 1.10 game code loads them; it doesn't run the game, check formulas, string keys (.tbl), animation or map files, or judge balance. Oddities in Blizzard's own tables are not reported. No findings means none of these checks failed, not that the mod works.

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>"
    },
    "name": "lint_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
modYes
fileNo
likeNo
limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden and does well on limits: it doesn't run the game, doesn't check formulas/string keys/animation/map files, doesn't judge balance, ignores Blizzard's own table oddities, caps output at ~40 KB. That is rich disclosure of negatives. It is weaker on the mechanics of the read itself (no mention of filesystem path semantics beyond the mod folder, no statement of whether it writes anything to disk) and on severity meaning is only briefly glossed ("errors are values the game can't use as written").

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?

Nearly every sentence earns its place, but the text is a single undifferentiated block of run-on sentences with no line breaks or grouping of parameters versus checks versus caveats. For a tool this complex the length is defensible; the structure, not the size, is the weakness.

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?

Complete for a high-complexity linter: it enumerates all check families, explains finding fields, severity tiers, output capping, and explicitly lists what it cannot catch. With an output schema present it doesn't need to explain return values, and an agent has everything required to call it correctly and interpret empty results.

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 coverage is 0%, and the description compensates fully: mod is a folder holding the .txt files or an imported table version; like is the vanilla baseline that selects the rule set, stands in for missing tables, and enables column/Expansion comparisons; file narrows the report to one table; limit defaults to 150, caps at 2000, and is shared across files with repeat-summarization behavior. Each parameter gains meaning the schema does not provide.

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+resource: "Find what is broken in a set of Diablo II data tables (Legacy 1.09 to 1.14d; not Resurrected)". It scopes the domain precisely and implicitly separates itself from diff/compare siblings by framing the job as validation against a rule set.

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 conditional guidance: "like ... give it whenever you can, because it picks the rule set", "file limits the report to one table (references are still resolved against the whole set)", and a closing caveat "No findings means none of these checks failed, not that the mod works." It never names a sibling tool as an alternative for near-miss cases (e.g. diff_tables), so routing is inferred rather than explicit.

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