Skip to main content
Glama

Export tokens in a build format

export_tokens
Read-only

Generate design tokens in CSS, SCSS, DTCG, Tailwind, JS, TS, Swift, Android, Figma, or JSON from one source, so primitive changes propagate to every output.

Instructions

Emit the full token set in a consumable format. Everything is generated from one source, so a primitive change propagates to every output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeNoOnly for the "json" format, which is single-theme.
formatYescss: CSS custom properties for every theme and density. The canonical runtime artefact — everything else is generated for tooling that cannot consume CSS. | scss: Sass variables plus theme mixins, for pipelines that still compile Sass. | dtcg: W3C Design Tokens Community Group JSON. The interchange format for design tools and token pipelines. | tailwind-v4: Tailwind CSS v4 @theme block mapping tokens to utility namespaces. | tailwind-v3: Tailwind CSS v3 JavaScript config object. | js: Plain ES module exporting a nested token object. | ts: TypeScript module with literal types, so token names are checked at compile time. | swift: Swift extension with UIColor values resolved per theme, for iOS. | android: Android colors.xml plus dimens.xml, with a values-night variant for dark. | figma: Tokens Studio for Figma JSON, with one token set per theme. | json: Flat resolved key/value JSON for one theme. The simplest thing to consume programmatically.
Behavior3/5

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

readOnlyHint and openWorldHint already establish a read-only, closed-world operation. The description adds the useful property that all outputs derive from a single source, so changes propagate consistently. It doesn't disclose response size or format details beyond what the schema provides, but with annotations, this is adequate.

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, tightly packed. The first sentence gives the core action, the second adds the single-source propagation behavior. No unnecessary words.

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?

The tool's complexity (11 formats, theme constraints) is mostly handled by the exhaustive format descriptions in the schema. The description adds the single-source consistency fact, which is useful context. However, the description doesn't explicitly state the output type (e.g., string content vs file download), but given the format descriptions, this is a minor gap. For a tool with no output schema, this is sufficient.

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% with detailed per-param descriptions, so the baseline is 3. The description adds no semantic information about the parameters themselves; the 'full token set' line is a property of the tool, not of any specific parameter.

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?

Clear verb+resource+scope ('Emit the full token set in a consumable format'). Distinguishes from siblings like get_tokens and get_primitives by focusing on export/build format, though it doesn't explicitly name an alternative.

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?

The description implies usage for generating distributable token artifacts but provides no explicit when-to-use or when-not-to-use guidance. No alternative tools are named. The schema's format descriptions offer some context, but the description itself doesn't state when to prefer export_tokens over get_tokens or inspect siblings.

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/mictsi/SekuraDesignMCP'

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