Skip to main content
Glama

Say what a tile id is

describe_tiles
Read-only

Decode RPG Maker MZ tileset IDs into slots, images, layers, flags, passability, terrain, and map usage; optionally render a labelled contact sheet.

Instructions

The tile dictionary, read out of the project the way the engine reads it. For each id: which slot it belongs to (A1–A4 are autotile shape groups of 48, A5/B–E are fixed), which image that slot is bound to, which layer MZ draws it on, and what its entry in the tileset's 8192-entry flags array means — open or blocked from which of the four directions, whether 0x10 is set so those direction bits do nothing at all (much of the stock tileset ships that way), ladder, bush, counter, damage floor, the vehicle bits, the terrain tag — plus how many cells of a map actually use it. Ask four ways: mapId for every tile a map really paints, which is the fastest way to learn an unfamiliar tileset; tiles for the ids in your hand; slot to walk one slot one base pattern at a time; or neither, for the slot table alone. contactSheet also draws the answer: a labelled sheet, one 3x3 block per id rendered by the same code path as a real map, with the id and the engine's own passability verdict printed under each block, because "which id is the water" is a question a picture settles faster than a table. The sheet is drawn on a scratch map that this call creates and deletes again; no tileset row and no real map is touched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slotNoWalk one slot, one base pattern at a time
limitNoCap the list (default 120)
mapIdNoDescribe every tile this map paints, with cell counts
tilesNoDescribe exactly these ids
tilesetIdNoWhich tileset's flags to read (default: the map's own)
contactSheetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A4.8/5.0
Behavior5/5

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

With readOnlyHint already declaring safety, the description adds substantial context beyond annotations: it explains the flags array semantics (directional passability, the 0x10 quirk in stock tilesets, ladder/bush/counter/vehicle/terrain bits) and discloses that contactSheet creates and deletes a scratch map, touching no tileset row or real map. That side-effect disclosure is exactly what annotations cannot convey.

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 what the tool reads, then the query modes, then the contact sheet caveat. Every sentence carries information, but the dense em-dash prose runs long and could be split for scannability.

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?

There is no output schema, so the description carries the full burden of describing return values — and it does, enumerating every field of an entry and what the contact sheet draws. For a 6-parameter tool with a nested object, nothing an agent needs to call it correctly appears to be missing.

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 coverage is already 83%, so the baseline is 3, but the description adds real meaning: it explains the slot grouping (A1–A4 autotile shape groups of 48, A5/B–E fixed), what mapId vs tiles vs slot each retrieve, and that tilesetId defaults to the map's own tileset. Minor gaps remain, such as the interaction between limit and the various modes.

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 — reading the tile dictionary as the engine reads it — and enumerates exactly what each entry carries (slot, bound image, layer, flags semantics, usage counts). It is clearly distinguishable from siblings like tileset_slots, inspect_cell and render_map.

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 lays out four query modes and when each applies: mapId 'for every tile a map really paints, which is the fastest way to learn an unfamiliar tileset', tiles for ids in hand, slot to walk a slot pattern-by-pattern, or neither for the slot table alone. contactSheet is also positioned as the answer for visual questions.

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