Skip to main content
Glama

bin_table_info

Reports the record count and record size of a Diablo II .bin table header, helping verify compiled data tables before decoding their fields.

Instructions

Say what a compiled Diablo II data table (.bin, the game's compiled form of a .txt table, e.g. data\global\excel\weapons.bin) holds: its record count and record size. path: a .bin file on the local disk, or an MPQ archive with member= the .bin's name inside it. The file starts with a 32-bit record count, then fixed-size records, so the record size is (file size - 4) / count; when that doesn't divide evenly the file isn't a plain record table (the *code.bin files are compiled formulas, for one) and the reply says so. Limits: it reports the header only; read_bin_table decodes the fields of 1.14d files. The record count can be compared with the .txt table's rows (the compiler may skip rows such as 'Expansion' separators).

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": "bin_table_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
memberNo

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, the description carries the full burden and does so: it explains the binary layout (32-bit count then fixed-size records), the derivation (size-4)/count, the non-divisible failure mode, and the .txt row-count caveat about skipped rows. This is behavior an agent cannot get from the schema.

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 answer (what it returns), then path/member semantics, then limits. Dense but every sentence carries information. Parenthetical asides add a bit of clutter but no redundancy.

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?

An output schema exists, so return values needn't be spelled out, and the description still notes the reply announces non-record-table files. Combined with format details and the read_bin_table pointer, an agent has enough to invoke it correctly; only the member-omitted edge case is unaddressed.

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%, so the description must compensate. It does: 'path' is a local .bin file or an MPQ archive, and 'member' is the .bin's name inside that archive — the conditional relationship between the two params is stated. Minor gap: not stated what happens if member is omitted for an archive path.

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: reports what a compiled .bin table holds — record count and record size — with the file format example (data\global\excel\weapons.bin). It is clearly distinct from read_bin_table, which the description says decodes fields.

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?

Explicitly defines scope ('it reports the header only') and names the alternative that does the deeper job ('read_bin_table decodes the fields of 1.14d files'). It also tells the agent when the calculation fails and why (*code.bin compiled formulas), so the agent knows what to expect rather than inferring it.

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