Skip to main content
Glama

render_photo_sheet_html

Render a self-contained, printable HTML sheet tiling one ID photo at real physical size across a cols x rows grid on the chosen paper, with optional cut guides and image framing (zoom/offset). Pass the photo as an inline base64 data URL (image/jpeg or image/png); without one, the sheet prints sized placeholders. If the grid does not fit the paper, the tool returns a structured error with the exact needed and usable dimensions and renders nothing. WARNING: a base64 image payload is large and is echoed back inside the returned HTML, so it consumes a lot of the calling LLM client's context window; resize/compress the image (small JPEG, 3 MB decoded max) before calling, and prefer plan_photo_sheet when you only need the geometry.

Input Schema

NameRequiredDescriptionDefault
colsNo
rowsNo
zoomNo
gapMmNo
paperNoA4
presetNofr-std
marginMmNo
cutGuidesNo
offsetXPctNo
offsetYPctNo
imageDataUrlNo
customWidthMmNo
customHeightMmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses placeholder behavior, structured error behavior when the grid does not fit, the exact failure output, and a strong context-window warning about base64 payloads. These are meaningful behavioral traits beyond the schema.

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 front-loaded with the core operation, then adds the photo payload behavior, failure behavior, and a clearly marked warning. Every sentence contributes necessary context for a complex rendering tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is strong on purpose, alternatives, and behavioral warnings, and it explains the returned HTML and error case. However, for a 13-parameter tool with zero schema descriptions and no annotations or output schema, it omits important parameter semantics that an agent would need to invoke it precisely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with 13 parameters, so the description must compensate. It mentions cols/rows, paper, cut guides, zoom/offset, and imageDataUrl, but does not explain preset, marginMm, gapMm, customWidthMm, customHeightMm, defaults, ranges, or how custom dimensions interact with presets.

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 states a specific verb and resource: render a self-contained printable HTML sheet tiling an ID photo at physical size across a cols x rows grid on chosen paper. It also distinguishes the tool from plan_photo_sheet by naming the alternative when only geometry is needed.

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?

It gives a clear usage condition and one explicit alternative: prefer plan_photo_sheet when only the geometry is needed. It does not mention list_photo_presets or explain when to use this tool versus preset-discovery workflows, leaving a small gap.

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.

Resources