Skip to main content
Glama

Create a room plan

create_plan
Read-onlyIdempotent

Use when the user wants to lay out, furnish, fit furniture into, or get a floor plan of a room or home: returns a checked plan, a drawing, and an editable Room Planner link. One room or a whole floor (rooms joined by doors), any outline, round and L-shaped pieces. Returns {plan, issues, summary, url, editable}: the plan normalised in its unit, every layout issue (as check_layout), a summary, the link. url opens the plan in the Room Planner editor; it encodes the whole plan, so only a complete link works. Issues list overlaps, blocked doors and swings and pieces outside rooms (errors, warnings) and tight gaps (info); message positions are piece centres. Plan format (version 4): {version:4, name, unit, rooms, items}. Every length is in unit (use the user's). One floor coordinate system: x grows right, y grows DOWN; the floor's top-left corner at {x:0,y:0}.

  • Room outline: interior corners, clockwise. A W x D rectangle at (X,Y) is [{x:X,y:Y},{x:X+W,y:Y},{x:X+W,y:Y+D},{x:X,y:Y+D}], walls 0 top, 1 right, 2 bottom, 3 left; wall i runs from outline[i] to outline[i+1].

  • Opening offset runs clockwise from the wall's start corner to the opening's near edge (RIGHT TO LEFT on a bottom wall, BOTTOM TO TOP on a left wall), or from the end named by from ("left"/"right"/"top"/"bottom" as seen on the plan, or "end"): a door 2 ft from the bottom of the right wall is {wall:1, offset:2, from:"bottom"}.

  • Item placement {x, y, rotation} is the CENTRE of the piece, rotation clockwise degrees; width runs along x and depth along y before rotation. No placement: set aside (kept, off the floor).

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

Input Schema

NameRequiredDescriptionDefault
planYesThe whole plan; format in create_plan's description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial behavior beyond them: the returned object shape {plan, issues, summary, url, editable}, issue categories with severities (overlaps, blocked doors/swings, pieces outside rooms as errors/warnings, tight gaps as info), issue positions being piece centres, plan normalisation to the declared unit, and the constraint that `url` encodes the whole plan so a partial link is useless. Nothing is said about cost, limits, or whether the drawing/link is persisted, which keeps it off a 5.

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 and well organised: usage, then return contract, then a bulleted format reference, each sentence carrying a distinct rule. It is long, and the "Plan format (version 4)" block substantially duplicates descriptions already present in the 100%-covered schema (unit, outline clockwise, wall indices, item centre), which costs it a point.

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?

For a single deeply nested plan object with no output schema, the description supplies everything an agent needs: the full expected return shape, how issues are reported and positioned, the editable-link caveat, and the geometry conventions for rooms, openings and placements. The complexity of the nested schema is matched by the level of detail given.

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?

With 100% schema description coverage the baseline is 3, and the description earns above that by resolving genuinely ambiguous geometry the schema states only tersely: the clockwise-from-wall-start offset rule with the concrete worked example (a door 2 ft from the bottom of the right wall is {wall:1, offset:2, from:"bottom"}), the right-to-left / bottom-to-top consequence on bottom and left walls, and that {x,y} is the piece CENTRE with width along x and depth along y before rotation. Some of this repeats schema text (y grows DOWN, walls 0-3 mapping), so it is not a full 5.

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?

Opens with a specific verb and resource tied to user intent ("lay out, furnish, fit furniture into, or get a floor plan of a room or home") and immediately names what comes back: a checked plan, a drawing, and an editable Room Planner link. That distinguishes it from check_layout (validation only) and read_plan (retrieval only) without needing the sibling schemas.

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?

"Use when the user wants to..." gives a clear triggering context, including the one-room vs whole-floor case (rooms joined by doors). It stops short of explicit when-not guidance and never names check_layout or read_plan as the alternative for validating or fetching an existing plan, so the agent must infer the routing.

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.