Skip to main content
Glama

Render the floor plan

render_plan
Read-only

Renders a PNG of the floor plan as the user sees it, framing a region or room with optional background overlay for comparison. Use it to preview drawings or check them against a reference.

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. One render runs at a time; this waits its turn.

Input 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

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

A4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses important behavior: the output is a PNG, regions are fitted by growing the short side and are never cropped, `bg` overlays a reference image, small `w`/`h` save tokens, and renders are serialized with waiting. These are substantive operational details an agent would not otherwise know.

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?

The description is compact and front-loads the output type. It is somewhat telegraphic in style, using notation like `region=[[minx,miny],[maxx,maxy]]`, but almost every sentence carries actionable information.

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?

Given the output schema and annotations, the description covers the important rendering behavior: PNG output, framing modes, aspect fitting, background overlay, token-saving advice, and concurrency waiting. It is largely complete, though it lacks explicit routing guidance relative to sibling rendering and plan-view tools.

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 the baseline is 3. The description adds useful semantics beyond the schema, especially that `region` is fitted to the image aspect by growing the short side rather than cropping, and that `bg` is for comparing against a reference image.

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?

The description clearly states the tool produces a PNG of the floor plan exactly as the user sees it, with region/room framing and optional background overlay. It is specific about output and scope, but does not explicitly distinguish itself from nearby siblings such as show_plan, render_3d, or render_photo.

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 explains how to choose between `region` and `room`, and mentions that renders are serialized and wait their turn. However, it gives no guidance on when to use this tool instead of sibling tools like show_plan, render_3d, or render_photo, so selection guidance is only implied.

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