Skip to main content
Glama

Export tokens in a build format

export_tokens
Read-only

Generate design tokens in any of 11 formats—CSS, SCSS, DTCG, Tailwind, JS/TS, Swift, Android, Figma, or JSON—from one source so a primitive change propagates 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already provide readOnlyHint=true and openWorldHint=false, and the description does not contradict them. It adds useful behavioral context: all outputs are generated from one source, so primitive changes propagate to every format. This goes beyond the annotations, though it does not describe response mechanics or edge cases.

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?

The description is two sentences with no filler. The first sentence states the action and scope, and the second explains a meaningful generation guarantee. Every sentence earns its place.

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 schema covers both parameters and the read-only annotation is present, so most calling context is complete. The description communicates the core behavior and output purpose, but because there is no output schema, an explicit statement of what the tool returns would make it fully complete.

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%, and the schema already thoroughly explains each format enum value and the theme restriction for json. The description itself adds no parameter-level meaning, so the baseline of 3 applies.

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, 'Emit', and a clear resource, 'the full token set', and the title adds 'in a build format'. It is distinct enough from siblings like get_tokens or get_primitives because it emphasizes producing full-token build artifacts, though it does not explicitly name a sibling for contrast.

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 does not state when to use export_tokens versus alternatives such as get_tokens or get_primitives. It implies 'use this to emit the full token set', but gives no exclusions, prerequisites, or guidance about which tool to prefer for inspection versus build output.

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