Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_extract_tokens

Extract design tokens such as colors, fonts, spacing, radius, and shadows from a Figma file or node, with Tailwind class mapping, so you can sync design values into code.

Instructions

Extract design tokens (colors, fonts, spacing, radius, shadows) with Tailwind class mapping

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_extract_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNoRoot node ID to extract tokens from
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.
tokenTypesNoWhich token types to extract

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.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-only extraction and mentions Tailwind mapping, but does not state permissions, side effects, rate limits, output format, or whether the operation is safe and non-destructive.

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 definition is a single front-loaded sentence with no filler. The parenthetical token list is useful for scanning, though it partially duplicates the schema enum and misses opacity.

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 token extraction tool with no output schema, the description explains the subject matter but not the return structure. The Tailwind mapping hint adds some output context, yet an agent still lacks detail on result format and practical usage conditions.

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 parameters are already documented in structured data. The description repeats some token categories but does not clarify the nodeId versus figmaUrl relationship, session persistence, or the omission of opacity from its token list.

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 uses a specific verb ('Extract') and resource ('design tokens'), enumerates token categories, and mentions Tailwind class mapping. It is clear what the tool does, but it does not distinguish itself from close siblings such as figma_export_tokens or figma_diff_tokens.

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?

There is no explicit guidance on when to use this tool versus figma_export_tokens, figma_diff_tokens, or figma_get_styles. The only usage signal is the implied 'extract tokens' purpose, with no prerequisites or exclusions stated.

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