Skip to main content
Glama

figma_analyze_design

Inspect a Figma frame, compare it to your Design System, and propose non-destructive fixes: swap raw colors, spacing, text, and buttons for tokens, variables, styles, and DS instances.

Instructions

Mode B. Inspect the selected frame (or node id), compare it to the Design System, and propose NON-destructive transformations: custom buttons/inputs → DS instances, raw spacing/radius → tokens, raw colors → color variables, raw text → text styles, manual layout → Auto Layout. Returns an analysisId + grouped summary. Nothing is changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoaudit (default): exact matches only. sync: after an import (e.g. from HTML), match to the Design System like a designer: buttons and pills become DS components with the closest-looking variant, text gets the style with the same size and weight (even if the import used a stand-in font), colours get variables or colour styles. a11y: WCAG 2.2 checks (text contrast against its real background, touch target size, tiny text). critique: a11y plus consistency signals (spacing off the scale, font sizes, raw colours, near-miss alignment) for the visual critique loop
targetNo'selection' (default) or node id
verboseNoInclude every transformation (default: summary + first 40)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/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 well: it states 'NON-destructive', 'Nothing is changed', and discloses the return shape ('analysisId + grouped summary'). It doesn't cover permissions, scope limits, or how the analysisId is later consumed, so it's strong but not exhaustive.

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?

Front-loads the action and packs the transformation mapping into a scannable arrow list, with the safety guarantee and return value trailing. The leading 'Mode B.' is dead weight and the sentence is dense, but overall it is efficient.

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

Completeness4/5

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

No output schema exists, but the description compensates by naming the return value and enumerating the analysis categories. Safety is explicit. It leaves the relationship between analysisId and downstream apply/execute tools unstated, which is the main residual gap for this multi-step workflow.

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 schema already documents mode (with a detailed enum), target, and verbose. The description only echoes target ('selected frame (or node id)') and adds no format or default nuance beyond the schema, so baseline 3 applies.

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 specific verb+resource (inspect selected frame/node, compare to Design System, propose transformations) and enumerates concrete transformation types. An agent can distinguish it from apply/execute siblings because it explicitly only proposes. The cryptic 'Mode B.' prefix adds no clarity and the tool isn't contrasted with named siblings.

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?

'Inspect the selected frame (or node id)' and 'propose NON-destructive transformations' imply this is the analysis step before applying changes, but no explicit when-to-use or when-not guidance is given. Alternatives like figma_apply_transformations, figma_preview_plan, or figma_scan_design_system are never named, leaving the agent to infer the correct routing.

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