Skip to main content
Glama

Render frames

render_design
Read-onlyIdempotent

Render a design's full page or selected frames/layers as images to visually inspect layout and spacing, optionally saving them as PNG files.

Instructions

Pictures of a design to look at it: the whole page or given frames / layers (up to 4 images), optionally saved as PNG files.

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": {
      "input_path": "<input_path>"
    },
    "name": "render_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
framesNoFrames or layers (names or ids); default: the first page.
max_sizeNo
overwriteNoReplace existing outputs.
input_pathYes
output_dirNoAbsolute output folder (default: next to the input; required for new files).
output_pathNoAbsolute output file for the first format (its extension must match).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, idempotent, closed-world behavior, so the safety profile is covered. The description adds real context the annotations do not: a hard cap of 4 images and the fact that rendering can either return images or persist them as PNG files. It omits what happens on name collisions, what the default render size is, and whether images come back inline or as paths.

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?

A single tight sentence with the core output ('pictures') front-loaded and no filler. The phrasing 'Pictures of a design to look at it' is slightly colloquial and would read better as a verb phrase, but nothing is wasted.

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?

With 7 parameters, no output schema, and 57% schema coverage, the description should say more about the return shape (inline images vs written files) and the defaults that matter, such as size 1200 and where files land. What it does say is accurate, but an agent still has open questions before invoking it confidently.

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

Parameters3/5

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

Schema coverage is 57%, so several parameters are already documented in the schema (frames, overwrite, output_dir, output_path). The description reinforces 'frames/layers' and the 4-image ceiling and mentions PNG saving, but says nothing about max_size, input_path, or the interaction between save, output_dir and output_path. Baseline 3 is appropriate for a mid-coverage schema.

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 concrete action (rendering pictures of a design) with explicit scope: whole page or named frames/layers, capped at 4 images, optionally persisted as PNG. It is clear what comes out, though it never names how it differs from a sibling like export_design, which an agent could easily mistake for the same job.

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?

The phrase 'to look at it' implies this is for visual inspection rather than file production, which is a usable hint. However there is no explicit when-to-use, no exclusion, and no pointer to export_design or review_design as the alternative for other needs, so the agent must infer the boundary itself.

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