Skip to main content
Glama

Render screens to an image

screenshot
Read-onlyIdempotent

Render up to four project screens side by side as one inline image, for clients that cannot show apps. Where your client can, call show_project instead. Returns the image, PNG unless format asks for WebP, and a one-line text note. Rendering uses no credits. Send projectUrl with the image so your user can open and edit the designs.

Input Schema

NameRequiredDescriptionDefault
scaleNoPixel density. 1 is right for showing a design in chat; raise it only when the user asked for a high-resolution export.
formatNoImage encoding for the screenshot.png
paddingNoSpace in pixels on each side of the row of frames.
projectIdYesProject id from an item's id in list_projects, or data.id in create_project.
backgroundNoCSS background behind the frames, such as "#ffffff" or "transparent".transparent
fullHeightNoExpand each frame to the full height of its content before capturing, so scrollable screens are rendered fully extended rather than cut off at the bottom of the frame. Frames are capped at 4x the default frame height.
componentIdsYesComponent id from an item's id in list_components, or a componentId in a run's data.result.operations. Not a screenId. Screens render left to right. Render more than 4 in separate calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real value beyond them: no credit consumption, the return shape (image plus a one-line text note), and the default encoding. It stops short of describing failure behavior for invalid or missing ids, so not quite a 5.

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?

Four short sentences, front-loaded with the capability and its fallback, then return format, cost, and the follow-up action. No filler and no restatement of the tool name.

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

Completeness5/5

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

With no output schema and seven fully documented parameters, the description fills the remaining gaps an agent needs: cost (no credits), return payload, client-capability branching, and the instruction to surface projectUrl to the user. Nothing essential to correct invocation is missing.

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 nevertheless reinforces the meaningful constraints (max four components, PNG unless format requests WebP) and adds a usage instruction not encoded anywhere in the schema. It could have clarified scale/padding intent, which restates nothing beyond the schema text.

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?

States a specific action (render screens as one inline image), the object (project screens), and the limit (up to four, side by side). It explicitly distinguishes itself from the sibling show_project, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition (clients that cannot show apps) and a when-not with the named alternative ("Where your client can, call show_project instead"). It also routes overflow cases: "Render more than 4 in separate calls."

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.