Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_export_tokens

Export extracted Figma design tokens as Tailwind config, CSS variables, JSON, or Style Dictionary output for use in your codebase.

Instructions

Export extracted design tokens as Tailwind config, CSS variables, or JSON

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_export_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoExport format for tokenstailwind
nodeIdNoRoot node ID to export tokens from. Auto-extracted from figmaUrl if provided.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It never says whether export writes files to disk or returns the serialized output as a string, whether the operation is read-only, or what happens when no tokens have been extracted yet — all decisive for an agent deciding how to use the result. It also lists only three of the four enum formats, omitting style-dictionary, so the prose is less complete than the schema.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is efficient, though the space saved is not reinvested in the behavioral details an unannotated export tool needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Three optional parameters, no annotations, and no output schema means the description must explain the result shape and side effects, and it does neither. It also leaves the relationship to figma_extract_tokens and figma_diff_tokens unaddressed, which is the main ambiguity for a token-pipeline tool.

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 format, nodeId, and figmaUrl are already documented, including the figmaUrl extraction/persistence behavior. The description adds nothing about parameter interactions (e.g., figmaUrl overriding nodeId) and its format list is a subset of the enum, so the baseline of 3 is appropriate.

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 and resource — export design tokens — plus the concrete output forms (Tailwind config, CSS variables, JSON). The word 'extracted' signals it operates on already-extracted tokens rather than doing the extraction, which loosely separates it from figma_extract_tokens, but the distinction is implied rather than explicit.

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?

No explicit when-to-use or when-not-to-use statement, and no sibling tool is named as an alternative. The only guidance is the adjective 'extracted', which hints that extraction must happen first, plus the prerequisite-free default of format=tailwind implied by the schema.

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