Skip to main content
Glama

Check a room layout

check_layout
Read-onlyIdempotent

Use when a plan only needs checking, without making a link or a drawing: returns the same issues as create_plan. The plan format is in create_plan's description. Returns {ok, issues, summary}; ok is true when no issue is an error or a warning. Each issue is {code, severity, message, ids}, ids naming the piece first, then what it hits. Errors: item_overlap, item_outside_room (outside every room). Warnings: door_blocked (a piece in a door's swing or track), doorway_blocked (in the passage either side of a door), opening_overlap, opening_off_wall, room_overlap, window_between_rooms, unknown_field (a key the format lacks, usually a typo). Info: tight_clearance, a straight gap from 6 in / 15 cm up to minClearance (in the plan's unit, default 24 in / 61 cm) between two pieces or a piece and a wall; closer pieces (chairs at a table) are taken as meant. Messages name rooms, pieces by label (with their centre when labels repeat) and doors by where they are on the wall.

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": {
      "plan": "<plan>"
    },
    "name": "check_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesThe whole plan; format in create_plan's description.
minClearanceNoGaps from 6 in up to this are tight_clearance; plan's unit, default 24 in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, and the description still adds substantial behavior: the exact return shape, the rule that ok is true only when no issue is error or warning, every issue code grouped by severity, and the conventions used in messages (labels, centres when labels repeat, door positions). This is far beyond what the annotations 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 the usage decision before any detail, and the long code enumeration is actionable rather than filler. The single dense paragraph concatenating return shape, severities and message conventions could be broken into clearer segments, but every sentence carries information.

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?

With no output schema, the description fully compensates by documenting the return object, the meaning of ok, and the per-issue structure with code semantics. Given a deeply nested plan schema at 100% coverage, nothing an agent needs in order to call this correctly or interpret the result is 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 description coverage is 100%, so the schema carries most of the burden, but the description still adds real meaning: minClearance is interpreted as the upper bound of a tight_clearance band starting at 6 in/15 cm, in the plan's own unit, with the default, and the plan parameter is explicitly pointed at create_plan's description for its grammar.

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 'room layout') and immediately scopes it against the sibling: it returns the same issues as create_plan but makes no link or drawing. An agent can tell exactly what this does and what it does not do without opening create_plan.

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 trigger condition is explicit ('Use when a plan only needs checking, without making a link or a drawing'), which implicitly routes creation/persistence to create_plan. It also delegates the plan format to create_plan's description rather than duplicating it. It stops short of naming create_plan as the explicit alternative for the check-plus-drawing case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.