Skip to main content
Glama

diff_tables

Compare a Diablo II data table between two game versions by key to identify added or removed rows and columns, plus changed cells with old and new values.

Instructions

What changed in one data table between two patches, e.g. file='weapons.txt', from_version='1.10', to_version='1.13c'. Rows are matched by the table's key (code, name, index, skill, Id..., or key_column), not by position: lists rows added and removed, columns added and removed, and for each changed row only the cells that changed (column: old → new). filter keeps only rows whose key contains that text (e.g. 'Enigma', 'axe'): use it when the result is truncated. Versions as for search_game_data; 1.12a, 1.13d and 1.14d lack many tables, so diff against 1.13c or 1.11b. For one row across every patch, read_game_data version='all' is simpler.

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>",
      "from_version": "<from_version>",
      "to_version": "<to_version>"
    },
    "name": "diff_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
filterNo
key_columnNo
to_versionYes
from_versionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/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 it does substantial work: it discloses the row-matching rule (by key, not position), exactly what the output contains (rows added/removed, columns added/removed, per-row changed cells as column: old → new), and that results can be truncated. It does not mention pagination limits, permission/auth requirements, or failure behavior for a missing table, which keeps it short of a 5.

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?

Content is front-loaded: what changed, then how matching works, then output shape, then filter/version guidance, then the alternative. Every sentence carries information, though the middle sentences are densely multi-clause and could be split for faster scanning.

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, yet the description still summarizes the return shape well enough to plan around, and it addresses the main failure modes for this tool (truncation via filter, sparse tables in certain versions). For a 5-parameter diff tool this is sufficient to invoke correctly.

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 description coverage is 0%, yet the description compensates well: file/from_version/to_version get worked examples, filter gets semantics plus examples ('Enigma', 'axe') plus its truncation purpose, and key_column is explained as an override to the inferred key (code, name, index, skill, Id...). The key_column explanation is somewhat terse (no statement of what happens when it is wrong or absent), leaving one small gap.

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+scope ('what changed in one data table between two patches') and immediately grounds it with a concrete example (file='weapons.txt', from_version='1.10', to_version='1.13c'). It is clearly distinguishable from read_game_data and search_game_data, both of which it references for different jobs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance for filter ('use it when the result is truncated'), steers version choice with a concrete exclusion ('1.12a, 1.13d and 1.14d lack many tables'), and names an alternative for a different need ('for one row across every patch, read_game_data version=\'all\' is simpler'). When-not and alternative routing are both present.

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