Skip to main content
Glama

inspect_map_file

Summarize a .dungeondraft_map file without opening it to check missing packs, map warnings, and level details, or compare two maps for rebuild changes.

Instructions

Summarise a .dungeondraft_map file without opening it. Read-only.

Works with Dungeondraft closed, and on maps the user downloaded or was
sent. Reports what a render cannot show:
- `packs`: each pack the map includes, whether it is installed and how
  many textures use it. `packs_missing` are not installed: those
  elements will be missing when the map opens. Check this before opening
  someone else's map.
- `packs_used_but_not_included`: elements Dungeondraft drops on load.
- per level: element counts, ambient light, terrain slot shares,
  materials by layer and coverage, paths by texture, width and layer,
  the most used objects with their scales, lights (range in the editor's
  units) and portals, with `vtt_reversed`: doors left open or windows
  closed, which swap roles in a VTT export.
- `warnings`: each of the above that will cause a visible problem, and
  why `installed` is null if the pack folder could not be read.

compare_to: a second map to compare with, e.g. a rebuild and its
  original. `comparison` lists count changes, objects and paths only in
  one map, scale and terrain share changes.

Lists stop at 25 entries per kind; counts are complete.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
compare_toNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares the operation read-only, states it works while Dungeondraft is closed, and explains the actual report contract (what packs/packs_missing mean, that packs_used_but_not_included are dropped elements, what vtt_reversed signals, and when 'installed' is null). It also discloses truncation behavior ('Lists stop at 25 entries per kind; counts are complete'), which is a real limit an agent must know when interpreting results.

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?

It is front-loaded with the one-line purpose and read-only note, then uses a bulleted structure that keeps the reporting semantics scannable. The per-level bullet is dense and packs several distinct return concepts into one item, which costs some readability, but every sentence carries information an agent needs to interpret the output.

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 must describe the return shape — and it does across packs, pack-missing warnings, per-level geometry/lighting/portal data, warnings, and the comparison block. Combined with the truncation note, an agent knows what it will get back and how to read it before calling.

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 has to compensate. It explains compare_to thoroughly — what it accepts ('a second map') and what it produces ('comparison' with count, presence-only, scale and terrain share changes). The required 'path' parameter, however, gets no explicit treatment (no format, absolute-vs-relative, or file-extension constraint); it is only implied by the opening sentence.

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?

The first sentence names a specific verb and resource ('Summarise a .dungeondraft_map file') and adds a scope qualifier ('without opening it. Read-only'). The follow-up 'Check this before opening someone else's map' implicitly separates it from open_map, so an agent can tell the two apart without opening either schema.

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?

It gives explicit situational guidance: 'Works with Dungeondraft closed' and 'Check this before opening someone else's map', plus a concrete use case for compare_to ('a rebuild and its original'). It does not state when not to use it or contrast it with inspect_dungeondraft_installation, so it falls short of a 5.

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

Deploy Server

Other Tools