Skip to main content
Glama

Render the floor plan

render_plan
Read-only

Generate a PNG of a floor plan, framing a chosen region or room with padding, and overlay the reference background to compare designs.

Instructions

PNG of the floor plan, exactly as the user sees it. region=[[minx,miny],[maxx,maxy]] frames a place — it is fitted to the image's aspect by growing the short side, never by cropping, so everything asked for is in the picture — or room=<id|name> with pad cm (default 30) frames a room without working the rectangle out. bg=0..1 overlays the background image to compare with the reference. Keep w/h small to save tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hNoHeight px (default 480, max 2048)
wNoWidth px (default 640, max 2048)
bgNoBackground image opacity for this render (e.g. 0.5 to compare the drawing with the scanned reference; 0 hides it)
padNoWith `room`: margin around it, cm (default 30)
gridNoDraw the grid (default true)
roomNoInstead of `region`: a room id or name to frame
regionNoPlan region `[[minx,miny],[maxx,maxy]]`; default fits the drawing. The region is fitted to the image's aspect and grown on the short side — never cropped — so everything asked for is in the picture

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mimeTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.0
    • changedInput schema / $defs / Point2 / description
      Previous value: -"[x, y] in centimeters; x grows right, y grows down"New value: +"[x, y] cm"
    • removedOutput schema / properties / mimeType / description
      Removed value: -"Type of the image in the content (image/png)"
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: the region is fitted to aspect by growing the short side and never cropped, and it advises keeping w/h small to save tokens. It does not discuss resolution-dependent rendering cost or failure modes, but the added framing behavior is genuinely informative.

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 output type and resource in the first clause, then walks through each optional parameter efficiently. It is dense with em-dashes and slightly run-on, but every sentence carries actionable information and nothing is wasted.

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?

With an output schema present, return values need no explanation, and annotations cover the safety profile. The description covers the framing, padding, background overlay, and size trade-off for all seven parameters. The only real gap is the absence of sibling-level differentiation, which the definition otherwise handles well.

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 coverage is 100%, so baseline is 3. The description goes further by explaining how region fitting behaves (grown on the short side, never cropped) and why bg is useful (overlay the scanned reference to compare), giving intent behind parameters that the schema states only mechanically.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and output clearly: a PNG of the floor plan exactly as the user sees it. This distinguishes it from render_3d and render_photo by implying a flat 2D plan view, but it never names or contrasts with those siblings or show_plan, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful intra-tool routing (region vs room with pad, bg to compare against the reference) but offers no when-to-use guidance at the tool level against siblings like show_plan, render_3d, or render_photo. Usage is implied through parameter alternatives rather than explicit conditions.

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