Skip to main content
Glama

sprite_info

Inspect Legacy Diablo II DC6, DCC, and COF sprite files to read directions, frames, dimensions, offsets, bounds, triggers, and warnings, and validate frame counts against a COF.

Instructions

Describe a Legacy Diablo II sprite file on this machine: a DC6 (interface and item art), a DCC (character, monster, missile and object animations) or a COF (an animation's layers). Not Resurrected's .sprite files. For DC6 and DCC: directions, frames per direction, each frame's width x height and offsets, each direction's box and the bounds of the whole sprite, plus warnings: DC6 frames wider or taller than 256 px (the game's sprite cache refuses them), unusual termination bytes, damaged data, and frame counts that disagree with a COF. For a COF: directions, frames, speed, bounding box, the layers (component, weapon class, shadow, transparency and draw effect), the frame triggers (attack, missile, sound, skill) and the back-to-front draw order per direction. path: the file; its type is taken from the extension, or the first bytes. cof: optionally the path of the COF this DC6/DCC is a layer of, to check directions and frame counts. direction: list every frame of this one direction (sprites with many frames are otherwise summarised). Reads the file only; it works without Pillow.

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

Input Schema

NameRequiredDescriptionDefault
cofNo
pathYes
directionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

There are no annotations, so the description carries the full load, and it does substantial work: it declares the operation read-only ("Reads the file only"), says no Pillow dependency is required, and discloses specific diagnostics emitted (frames over 256 px rejected by the sprite cache, unusual termination bytes, damaged data, frame-count mismatches). It does not say what happens on an unreadable or unidentifiable file, which is the main remaining gap for a file-inspection tool.

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 core purpose, then organized by format and by parameter, which mirrors how an agent would reason about it. It is dense but nearly every clause adds information; the only soft spot is the long enumeration of returned fields, which partly duplicates what the output schema already declares.

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?

For a three-parameter inspection tool with an output schema and no annotations, the definition covers purpose, format-specific returns, warnings, and parameter behavior thoroughly. It spends words restating return fields the output schema already provides, and omits failure behavior, but nothing essential for correct invocation is missing.

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%, so the description must compensate, and it explains all three parameters with meaning beyond their types: `path` type inference from extension or first bytes, `cof` as an optional cross-check target for directions and frame counts, and `direction` as a drill-down that lists every frame of one direction instead of the default summarised output. That last clause is especially valuable because it reveals the default behavior the schema cannot express.

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?

Names a specific verb (describe) and resource (a Legacy Diablo II sprite file), then enumerates the three concrete formats it handles (DC6, DCC, COF) with a one-line gloss for each. It also carves out scope explicitly with "Not Resurrected's .sprite files," so an agent can immediately tell this apart from the conversion siblings (sprite_to_png, png_to_dc6).

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?

The description gives clear conditional usage: use it on DC6/DCC when you want geometry and warnings, on COF when you want layers, speed and draw order, and pass `cof` when validating a DC6/DCC against its COF. "Reads the file only" signals it is inspection rather than conversion, implicitly steering away from sprite_to_png. It stops short of naming an alternative tool for the write/convert direction.

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