Skip to main content
Glama

render_variants

Render multiple UI component variants with different props or states in a single call, returning a screenshot for each to verify all states and theme variations.

Instructions

Render multiple variants of a component (different props/states) in one call. Returns a screenshot for each variant. Use this to verify buttons in all states, theme variations, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesComponent code (must export a function that accepts props)
variantsYesArray of variants to render
frameworkNoFramework: html, react, vue, or sveltereact
widthNoViewport width (px)
heightNoViewport height (px)
Behavior3/5

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

With no annotations, the description carries full burden. It discloses that the tool returns screenshots, but does not elaborate on side effects, permissions, or output format details (e.g., how screenshots are returned). This is adequate but minimal.

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 two sentences long, front-loaded with the key action and result, and contains no unnecessary words. Every sentence is valuable.

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 explains the tool's purpose and basic output, but lacks detail on the exact return format (e.g., base64, URL) and does not cover edge cases. For a tool with 5 parameters and no output schema, this is somewhat insufficient.

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 description coverage is 100%, so the description adds no extra meaning beyond the schema. The tool description only gives a high-level usage without explaining parameter details further. Baseline of 3 is appropriate.

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 clearly states the tool renders multiple variants of a component and returns screenshots. It uses specific verbs and distinguishes from siblings like 'render_component' by emphasizing multiple variants.

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 explicitly says 'Use this to verify buttons in all states, theme variations, etc.', providing clear usage context. It does not explicitly mention when not to use or contrast with alternatives, but the sibling list provides additional context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kamegoro/frameshot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server