Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

by Shivam990q

get_design_tokens

Exports Figma design tokens as Tailwind v3/v4, CSS variables, SCSS, W3C DTCG, TypeScript, or Flutter so teams can reuse design values in code.

Instructions

Exports design tokens in 8 formats (Tailwind v3/v4, CSS variables, SCSS, W3C DTCG, TypeScript, Flutter).

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": {
      "url": "<url>"
    },
    "name": "get_design_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFigma design URL
formatNotailwind-v4

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. 'Exports' implies a read-only transformation rather than a write, and the format list is the key behavioral trait; however, it says nothing about authentication requirements, rate limits, whether output is written to disk or returned, or what happens if the format is omitted (the schema's default covers that only implicitly).

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 front-loaded sentence with the core capability and the format options, no filler. Slightly weakened by the inaccurate count ('8 formats') followed by only six named plus an enum of seven.

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 two-parameter export tool with no output schema, the description covers what the tool produces (token output in a chosen dialect), which is the main thing an agent needs. Missing pieces are minor: the return shape (string vs file) and the format-count discrepancy.

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 coverage is 50%: 'url' is documented in the schema but 'format' has only an enum and default with no description. The description partially compensates by giving human-readable names for the format values (Tailwind v3/v4, CSS variables, SCSS, W3C DTCG, TypeScript, Flutter), but it adds no guidance on URL forms (file-level vs node-level) or format selection trade-offs.

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?

A specific verb plus resource ('Exports design tokens') with the concrete output formats enumerated, which distinguishes it from get_figma_data (raw design data) and generate_code. It falls short of a 5 because the stated count of 8 formats does not match the 7 enum values, leaving the agent with a small unresolved discrepancy about the tool's coverage.

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?

The description never says when to choose this tool over siblings such as get_figma_data or generate_code, nor does it state prerequisites (a Figma URL is required, and presumably Figma auth). Usage must be inferred entirely from the name and format list.

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