Skip to main content
Glama
N-Link-Lab

design-tokens-mcp

by N-Link-Lab

Export tokens to code

tokens_export
Idempotent

Export design tokens as CSS custom properties, Tailwind config, or Figma Variables JSON, with optional file output.

Instructions

Export all design tokens in one of three formats: 'css' (CSS custom properties in a :root block), 'tailwind' (a Tailwind theme.extend fragment as CommonJS), or 'figma-variables' (a JSON shape close to Figma's Variables API with name/resolvedType/value). Returns { format, code }. Optionally pass out_path to also write the result to a file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatYesOutput format
out_pathNoOptional file path to write the exported code to
Behavior4/5

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

Annotations declare idempotentHint: true, so the description's mention of optional file writing and return shape adds useful behavioral context. It does not describe error scenarios, but the idempotence mitigates concerns.

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?

Two sentences with no wasted words. The first sentence front-loads the core purpose and formats; the second covers return and optional parameter. No fluff.

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?

Given the tool's simplicity (2 params, no output schema), the description covers the key aspects: formats, return shape, optional file output. It could mention that all tokens are exported, which it does ('Export all design tokens').

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, but the description adds significant value by explaining each format enum value (e.g., 'css' produces CSS custom properties in a :root block) and detailing the return structure, going beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Export' and clearly identifies the resource as 'all design tokens' in three formats, effectively distinguishing it from sibling tools like tokens_get (retrieve single) or tokens_set (modify).

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

Usage Guidelines4/5

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

The description explains the available formats and optional file writing, providing clear context for when to use this tool. It does not explicitly state when not to use it, but the sibling names imply the tool is for bulk export only, which is adequate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/N-Link-Lab/design-tokens-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server