Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Design QA audit

figma_audit
Read-onlyIdempotent

Audit Figma screens and components for accessibility and design-system issues—contrast, target size, hardcoded colors, text styles, spacing, naming, and auto layout—and return findings with node IDs.

Instructions

Checks layers against accessibility and design-system standards and lists findings with node ids:

  • contrast: text vs. its background, WCAG 2.2 1.4.3 (4.5:1, large text 3:1), per styled range

  • nonTextContrast: outlines and icons vs. background, WCAG 1.4.11 (3:1)

  • targetSize: buttons, tabs, keys, checkboxes and anything with prototype reactions, against the platform hit area (ios 44pt per Apple HIG, android 48dp per Material, web 24px per WCAG 2.5.8)

  • hardcodedColor: fills/strokes not bound to a variable or style

  • textStyle: text without a text style

  • spacingGrid: auto-layout gap/padding off the 4px grid

  • layerName: default names like "Frame 12"

  • autoLayout: frames with several children and no auto layout Layers inside instances are checked for contrast and size only (their tokens belong to the main component). Run it on screens after building them and fix errors first.

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": {
      "node_ids": "<node_ids>"
    },
    "name": "figma_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.
checksNoDefault: all
node_idsYesScreens, sections or components to audit
platformNoweb
max_findingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds substantive context on top: findings are returned with node ids, per-styled-range granularity for contrast, platform-specific hit-area thresholds, and the explicit limitation that instance children are only partially checked. The truncation behavior implied by max_findings is not disclosed, which keeps it off 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded and the bulleted check list is scannable, with the scoping caveat and usage instruction placed after. The bullets are individually long, but each carries rule plus threshold information that an agent needs, so there is little true waste.

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, and the description does its part by stating the return shape (a findings list keyed by node id). Combined with the check taxonomy and threshold table, an agent can call this correctly; the remaining gap is whether results are capped or ordered when max_findings is hit.

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?

With schema coverage at 60%, the description compensates well for the weakest parameter: the `checks` enum is documented only as "Default: all" in the schema, but every enum value is explained here with its rule and threshold. `platform` is likewise given meaning via the iOS 44pt / Android 48dp / web 24px thresholds, though `max_findings` and the truncation semantics remain undiscussed.

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?

A specific verb and resource ("checks layers against accessibility and design-system standards and lists findings with node ids") followed by an enumerated set of checks, each tied to a named standard (WCAG 2.2 1.4.3, 1.4.11, 2.5.8). No sibling performs auditing, so the definition is unambiguous on its own terms.

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?

"Run it on screens after building them and fix errors first" gives a clear lifecycle position for the tool, and the instance caveat ("layers inside instances are checked for contrast and size only") scopes expectations. It stops short of naming alternatives or stating what to do when the audit is not the right step, so it falls below the explicit when/when-not bar.

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