Skip to main content
Glama
figma-mcp
by svv2014

extract_figma_design_tokens

Extracts design tokens—colors, typography, spacing, and more—from a Figma file to keep code and design systems aligned.

Instructions

Extract design tokens from Figma file (colors, typography, spacing, etc.)

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": {
      "fileKey": "<fileKey>"
    },
    "name": "extract_figma_design_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileKeyYesThe Figma file key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a read operation via 'Extract' but never states that it is non-destructive, whether it requires Figma API credentials or file access permissions, whether the extraction is complete or sampled, or what the token payload looks like.

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?

One compact sentence with the action front-loaded and the token categories itemized for quick scanning. Nothing is wasted, though the brevity comes at the cost of the behavioral and usage detail noted elsewhere.

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?

A one-parameter tool is low complexity, but there is no output schema and no annotations, so the description should say what the extracted tokens look like (JSON structure, token naming convention) and how large files are handled. It is adequate to identify the tool but incomplete for calling it with confidence.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents fileKey as 'The Figma file key.' The description adds no further meaning such as accepted key format (URL-derived vs raw ID) or whether branch/node keys are valid, so it sits at the baseline.

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 ('Extract') and resource ('design tokens from Figma file') with parenthetical examples of token categories (colors, typography, spacing). An agent can distinguish it from generation siblings like generate_figma_css, though the description never names or contrasts any sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no exclusions, and no mention of where it sits relative to generate_figma_css, generate_figma_html, or get_figma_layout_data. It also omits prerequisites such as authentication or how to obtain the fileKey, leaving the agent to infer everything beyond the bare purpose.

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