Skip to main content
Glama

Render the floor plan

render_plan
Read-only

Render a floor plan as a PNG image, framing a chosen region or room with adjustable padding, grid overlay, and background opacity for comparison.

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
mimeTypeYesType of the image in the content (image/png)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark the tool read-only, so additional safety disclosure is less critical. The description adds meaningful behavioral details beyond annotations: the region is never cropped and grows on the short side, the background image is overlaid for comparison, and large w/h values increase token cost.

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 a single dense paragraph with the core purpose front-loaded. Every phrase earns its place, covering output format, framing behavior, background overlay, and token efficiency without fluff or redundancy.

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 rich input schema (100% parameter coverage), the output schema, and the readOnlyHint annotation, the description is nearly complete. It covers the most important behavioral constraints and rendering modes; minor details like the default grid setting and fully automatic region fitting are already present in the schema, so their absence here is acceptable.

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 value by explaining the relationship between room and region, the pad default in centimeters, the purpose of bg for comparing with the reference, and the token-cost implication of large w/h values. Some duplication with the schema exists, but the added guidance is genuinely useful.

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?

The description opens with 'PNG of the floor plan, exactly as the user sees it,' which names a specific output format and scope. It clearly distinguishes this from 3D/photo renderers and explains the two framing modes (region and room), leaving no ambiguity about what the tool produces.

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 description gives clear context for use: it produces a PNG of the current floor plan, includes framing modes, background overlay for reference comparison, and token-saving guidance. It does not explicitly contrast this with sibling tools like show_plan or export_plan, but the usage context is strong enough for an agent to decide when to use it.

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