Skip to main content
Glama

validate_floorplan

Check a floorplan's structure before furnishing it to detect sealed rooms, doors missing walls, portals connecting nothing, and missing exterior access.

Instructions

Check a floorplan's structure BEFORE furnishing it. Read-only.

Answers the questions element counts cannot: is every room reachable, does
every door open onto something, and is there a way in from outside. A sealed
room and a connected one have identical counts.

Returns the enclosed regions with their area and bounds, which portals each
touches, and `findings`:

  sealed_regions         enclosed areas with no route from outside, even
                         with every door treated as open. Usually a missing
                         door, or one that missed its wall.
  portals_not_in_a_wall  a door touching no wall — what a failed wall-mount
                         looks like. It cuts no opening in anything.
  portals_to_nowhere     a door whose two sides are the same region, so it
                         connects nothing.
  exterior_openings      portals connecting a region to the outside. A
                         window counts too, so a building listed here may
                         still have no way IN. Check the assets.
  vtt_reversed_portals   a door with closed=false or a window with
                         closed=true: in a VTT export it acts as the other.
                         Delete it and add_portal again without `closed`.

`ok` is true when nothing in the first three lists appeared. Treat it as a
gate: no furniture, foliage or dressing until it passes, because repairing
structure after furnishing means moving everything twice.

Doors are analysed as openings regardless of their `closed` flag — that
controls light, not movement.

cell_woxels: analysis resolution, 64 (a quarter tile) by default. Smaller
  is more exact and slower; a value above a door's width can seal doorways
  and report false failures.
min_room_tiles: ignore enclosed areas below this, so the sliver between two
  nearly-touching walls is not reported as a room.

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_floorplan"
  }
}

Input Schema

NameRequiredDescriptionDefault
cell_woxelsNo
min_room_tilesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A5/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 behavioral burden and does so well: it declares read-only operation, defines exactly when `ok` is true, and explains how doors are analyzed regardless of their `closed` flag. It also discloses failure modes such as resolution-induced false failures and the fact that exterior_openings may include windows rather than a usable way in.

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

Conciseness5/5

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

The description is front-loaded with the purpose, read-only status, and gate behavior, then organizes findings into a scannable glossary and closes with parameter notes. It is long but appropriately sized for a complex validator, and every section adds information an agent needs to interpret or call the tool correctly.

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 and no annotations, so the description must explain return values; it does so through enclosed regions, bounds, touched portals, the `findings` categories, and `ok`. Combined with full parameter semantics, it is complete enough for an agent to invoke the tool and understand its results.

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 description coverage is 0%, so the description must explain both parameters, and it does: `cell_woxels` gets its default, unit meaning, accuracy/speed tradeoff, and the specific risk of sealing doorways if set too high. `min_room_tiles` is explained as a threshold to suppress slivers between nearly-touching walls.

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: check a floorplan's structure before furnishing, read-only. It explicitly distinguishes this structural validation from element counts by naming the questions counts cannot answer: reachability, doors opening onto something, and exterior access.

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?

Gives clear when-to-use guidance: run BEFORE furnishing and treat `ok` as a gate, with no furniture or dressing until it passes. It also names a remediation path for `vtt_reversed_portals` via delete and `add_portal`, making the next action obvious when that finding appears.

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