Skip to main content
Glama

validate_scene

Checks a battle map for unpainted bare ground and unexplained lights, flagging terrain gaps and light sources without matching emitters. Read-only.

Instructions

Check that the map has ground and that its light has causes. Read-only.

Two failures that a render shows but cannot diagnose, and that no element
count can show at all:

  bare_ground   open ground with no terrain painted on it. Terrain is the
                one part of a map with no element count, so a building
                standing in an unpainted void reports as a complete,
                correct map everywhere else. Cells occupied or enclosed by
                walls are skipped — an interior is floored with patterns,
                not terrain, and would otherwise read as bare on a
                perfectly finished map.
  lights        every light, split into `explained` (something nearby could
                be emitting it) and `unexplained` (nothing could). A pool
                of warm light on bare boards with no candle, hearth or
                lantern reads as a mistake immediately, and a viewer
                notices before they can say why.

Lights match emitters by asset NAME, so read it as a prompt: an oddly named
source reads as unexplained. `explained` names the asset it credited.

`arrangement` is advice and never affects `ok`: how many objects sit at
scale 1.0 on quarter turns, and how much of the map the build covers.
`art_families` is advice too: objects, walls and terrain slots counted per
pack (`core` is the stock library). Packs are drawn in different styles,
so counts outside the family the plan chose are worth a look.

Outdoors, remember the global condition is itself a source. Under daylight
the open ground needs no local sources at all; at night it wants the light
to come from things that are in the scene.

samples: grid resolution per side for the terrain read, 2-64. Higher is
  slower and finds smaller gaps.
emitter_reach: how close (in woxels) an emitter must be to account for a
  light. One tile by default — a light is meant to sit on its source.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
samplesNo
emitter_reachNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.5/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: it declares 'Read-only.', names the result fields (bare_ground, lights.explained/unexplained, ok, arrangement, art_families), and explains why the wall-enclosed-cell skip exists. It also discloses the matching mechanism ('Lights match emitters by asset NAME') and the daylight caveat, which are non-obvious behavioral details an agent could not get anywhere else.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the read-only guarantee are properly front-loaded, but the body drifts into atmospheric prose ('a viewer notices before they can say why', 'a light is meant to sit on its source') that costs tokens without adding callable information. The advice-section and daylight paragraphs are relevant but could be tightened considerably.

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 two-parameter, no-output-schema, no-annotation tool, the description covers both inputs, the shape of the return, and the caveats that make the result interpretable (name-based matching, exterior/daylight rules). The main residual gap is that the exact result shape of arrangement/art_families is described loosely rather than structurally.

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% (bare titles and defaults only), and the description fully compensates: samples is given a 2-64 range, a per-side grid meaning, and a cost/benefit note ('Higher is slower and finds smaller gaps'); emitter_reach gets units (woxels), semantics ('how close an emitter must be to account for a light'), and its default rationale. This is meaning the schema does not carry.

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 concrete verb and resource up front: 'Check that the map has ground and that its light has causes,' then enumerates the two specific failure classes (bare_ground, lights) it detects. An agent can tell this apart from the other validate_* siblings because the scope is terrain-painting and emitter-justification, not floorplan or placement checks.

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?

Gives a clear usage rationale in 'Two failures that a render shows but cannot diagnose, and that no element count can show at all,' which tells the agent when this tool is the right diagnostic. It stops short of naming the sibling validators or stating exclusions, so the agent must infer that this is complementary to validate_floorplan/validate_placements rather than a replacement.

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