Skip to main content
Glama
N-Link-Lab

design-tokens-mcp

by N-Link-Lab

Create or update a design token

tokens_set
Idempotent

Create or update design tokens with type validation: color as hex, dimension with unit, fontFamily as string, number as numeric. Writes token file in place.

Instructions

Create or update a design token. The value is validated against the token type before writing: color must be hex (#0F766E), dimension must have a unit (16px, 1.5rem), fontFamily must be a non-empty string, number must be numeric. Writes the token file in place and returns { name, type, value, created }. This is the only tool in this server that modifies the token file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesToken name as a dot path, e.g. 'spacing.xl'
typeYesToken type; determines how the value is validated
valueYesToken value, e.g. '#0F766E', '32px', 'Noto Sans JP', '700'
Behavior4/5

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

Description expands on annotations (idempotentHint=true) by clarifying it writes file in place and returns creation timestamp. Also documents validation behavior per type. No contradiction with annotations.

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: first sentence states core purpose, second adds validation and return details. Every sentence adds value with no redundancy.

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?

Describes return shape and validation constraints. Lacks error handling details but is sufficient for a simple upsert tool without output schema.

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 covers 100% of parameters, but description adds concrete examples (e.g., '#0F766E', '32px') and validation rules per type, helping the agent format values correctly.

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?

States 'Create or update a design token' with specific verb and resource. Explicitly distinguishes from siblings: 'This is the only tool in this server that modifies the token file.'

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?

No explicit when-to-use or when-not, but identifying it as the only modifying tool implies usage for token mutations. Also specifies validation rules to guide correct usage.

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