Skip to main content
Glama

compare

Compare a design against a rendered implementation and get structured discrepancies. Provide a Figma URL, design image, or component description to produce a report of visual differences.

Instructions

Compare a design against a rendered implementation and return discrepancies (measured on kiyas's golden eval set: 90% mutation recall, zero false positives on identical pairs). Provide figma (frame URL) or designImage (local path or URL of a design screenshot), plus either target (a URL) or component (natural-language description; kiyas finds it in the codebase). No Figma token needed for designImage — if a Figma MCP server is connected, export the frame as an image with its screenshot tool and pass that here. Returns a reportId you can pass to get_diff_report or list_issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoFriendly name for the comparison, used in the report header
runsNoRun the comparison N times and keep majority-vote findings — higher consistency at N× cost (default: 1)
waitNoTime in ms to wait after page load before screenshotting
figmaNoFigma frame/component URL. Provide either `figma` OR `designImage`.
modelNoAI provider (default: claude)
scaleNoRender scale applied to both the Figma export and the screenshot (default: adaptive — 2 for component-sized captures, 1 for large ones)
targetNoDirect URL of the rendered component. Provide either `target` OR `component`.
fullPageNoCapture the full scrollable page when no selector is given (default: true)
selectorNoCSS selector to screenshot a specific element
viewportNoViewport for the screenshot, format WIDTHxHEIGHT (default: 1280x720)
authStateNoPath to a Playwright storageState JSON file (cookies + localStorage). Lets kiyas screenshot authenticated views the same way your tests do. Generate with `npx playwright codegen --save-storage=auth.json`.
componentNoNatural-language description of the component to find in the codebase, e.g. "primary button on the login page".
devServerNoDev server base URL (default: auto-detect a listening server on ports 3000/5173/8080/4200, else http://localhost:3000)
thresholdNoSeverity threshold for the rendered HTML report (default: all)
colorSchemeNoForce prefers-color-scheme for the capture. Default: auto — kiyas detects the design's brightness and retries in the matching scheme.
designImageNoLocal path, http(s) URL, or base64 data: URI of a design image (e.g. a screenshot) to compare against, instead of a Figma URL. Useful when no Figma token is configured — e.g. export the frame with a connected Figma MCP server's screenshot tool and pass the resulting file path or image URL here.
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: it notes the evaluation metrics (90% mutation recall, zero false positives), default behaviors (adaptive scale, auto-detected dev server, color scheme detection), resource costs (multiple runs increase cost), and the nature of the output (reportId). No annotation contradiction exists.

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?

The description is somewhat lengthy but front-loaded with the core purpose and key options. Every sentence adds value, though a more structured (e.g., bulleted) format could improve readability. It avoids redundancy with the schema.

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?

Given 16 parameters, no output schema, and no annotations, the description is remarkably complete. It covers input alternatives, output (reportId), dependencies (Figma MCP server), default behaviors, and performance guarantees. The only minor gap is the omission of the exact report schema, but that is delegated to sibling tools appropriately.

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%, but the description adds significant meaning by grouping mutually exclusive parameters (figma vs designImage, target vs component), explaining defaults, and providing contextual notes (e.g., 'no Figma token needed for designImage'). This goes beyond the schema's field definitions.

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's function: comparing a design against a rendered implementation and returning discrepancies. It specifies two alternative input methods (figma or designImage, target or component) and mentions the output (reportId), distinguishing it from sibling tools like get_diff_report and list_issues.

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?

The description provides explicit guidance on when to use each parameter combination, including alternatives (e.g., 'Provide figma OR designImage', 'either target OR component'), prerequisites (no Figma token for designImage), and links to sibling tools for further processing. It also explains how to handle authentication via authState.

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/saiffmirza/kiyas'

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