Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_diff_tokens

Compare Figma styles against code tokens to detect design-system drift, reporting matched, changed, Figma-only, and code-only values.

Instructions

Compare Figma styles vs provided tokens. Provide figmaStyles data (from official Figma MCP's use_figma or REST API). Reports drift: figmaOnly, codeOnly, changed, matched. No FIGMA_ACCESS_TOKEN needed.

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": {
      "figmaStyles": "<figmaStyles>"
    },
    "name": "figma_diff_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontsNoTypography tokens from your code to compare
colorsNoColor tokens from your code to compare
effectsNoEffect tokens from your code to compare
figmaUrlNoFigma design URL (e.g., 'https://www.figma.com/design/ABC123/File-Name?node-id=1817:2817'). Extracts file key and node ID automatically. Once set, persists for the session.
figmaStylesYesFigma style data to compare against. Get this from the official Figma MCP or REST API.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A3.8/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 reasonably well: it discloses that the operation is a read-only comparison, that no access token is needed, and it names the four result buckets (figmaOnly, codeOnly, changed, matched). It omits how styles are matched (name normalization, case/folder handling) and whether figmaUrl triggers a fetch.

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?

Four short sentences, front-loaded with the core comparison and immediately followed by input provenance, output shape, and the auth note. Nothing is repeated from the schema and there is no filler.

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?

For a comparison tool with five nested parameters and no output schema, the description covers purpose, input source, result categories, and auth. The remaining gap is the matching/diff semantics — what counts as 'changed' — which an agent would need to interpret results correctly.

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 nested color/font/effect/figmaStyles structures are already fully documented in the schema. The description only adds provenance for figmaStyles (official Figma MCP or REST API), which is genuine but marginal, 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?

The description states a specific verb and resource: compare Figma styles against provided tokens, reporting drift. That is clearly distinct from extraction tools like figma_extract_tokens or figma_get_styles, but it never names a sibling or explicitly contrasts itself, leaving the agent to infer the boundary.

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?

It tells the agent how to supply input (figmaStyles from the official Figma MCP's use_figma or the REST API) and notes no FIGMA_ACCESS_TOKEN is required, which is useful context. It does not say when to choose this over figma_audit or figma_get_styles, nor when not to use it, so usage is implied rather than stated.

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