Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_check_design_parity

Compare a Figma component's design specs against code-side data to find discrepancies, get a parity score, and receive actionable design-side or code-side fixes.

Instructions

Compare a Figma component's design specs against code-side data to find discrepancies. Returns a parity score, categorized discrepancies, and actionable fix items for both design-side (Figma tool calls) and code-side (file edits). Read the component source code first, then pass the data in codeSpec.

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": {
      "nodeId": "<nodeId>",
      "codeSpec": "<codeSpec>"
    },
    "name": "figma_check_design_parity"
  }
}

Input Schema

NameRequiredDescriptionDefault
enrichNoEnable token coverage and enrichment analysis. Default: true
nodeIdYesComponent node ID (e.g., '695:313')
fileUrlNoFigma file URL. Uses current URL if omitted.
codeSpecYesStructured code-side component data. Read the component source code first, then fill in the relevant sections.
canonicalSourceNoWhich source is the canonical truth. Fixes will target the other side. Default: 'design'design

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return shape well (parity score, categorized discrepancies, fix items for both design-side and code-side) and clarifies that the output is remediation items rather than applied changes. It says nothing about permissions, rate limits, whether the tool itself mutates anything, or how the fix items are ordered.

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?

Three sentences, front-loaded with the purpose, followed by returns and then the workflow precondition. No filler, no restatement of the tool name.

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?

For a tool with a deeply nested six-section codeSpec and no output schema, the description covers purpose, return categories, and the read-then-pass workflow. It leaves open what a parity score means numerically, how discrepancies are categorized, and whether a partial codeSpec (e.g. only visual, no tokens) still yields useful results. Adequate but thin relative to the input complexity.

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 100%, so the nested codeSpec sections, enums, and defaults are already documented in structured fields; baseline 3 applies. The description reinforces that codeSpec must be populated from a prior source read, but this duplicates the schema's own codeSpec description rather than adding new meaning. The enrich toggle and canonicalSource trade-off get no elaboration in the description.

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?

Names a specific verb and two concrete resources: 'Compare a Figma component's design specs against code-side data to find discrepancies.' The parity-check framing is distinctive enough that an agent can separate it from linting or design-system summary siblings without opening the schema. It stops short of explicitly naming a sibling it is not.

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?

Gives an explicit prerequisite sequence: read the component source code first, then supply it via codeSpec. That is real when-to-use context an agent would otherwise have to guess. It offers no exclusions or alternatives, e.g. when to prefer figma_lint_design or figma_get_design_system_kit instead.

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

Deploy Server

Other Tools