Skip to main content
Glama

Get Design Tokens

get_tokens

Retrieve the complete design token set — colors, typography, spacing, radius, and shadows — before writing any CSS or styling code, so every value stays within the system.

Instructions

ALWAYS call this before writing CSS, Tailwind config, CSS variables, or any styling code. Returns the complete token set: colors (with all semantic variants), typography scale, spacing scale, border radius, and shadows. Never use values outside these tokens.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full behavioral burden, and it does so: the agent learns that the call is safe to rely on up front, that it returns a complete rather than partial token set, and what the return contains, category by category. It doesn't describe auth needs or output formatting, but for a zero-parameter read tool those are minor omissions.

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?

Three short sentences: the when-to-call imperative comes first, then what is returned, then the usage constraint. Every sentence earns its place, with no filler, and the most important instruction is front-loaded.

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?

This is a zero-parameter read tool with no output schema, and the description enumerates return categories, which substitutes well for the missing schema. What is not covered is the shape or nesting of the returned data. Minor for a tool this simple.

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?

The input schema takes zero parameters, so the baseline of 4 is correct here. The description correctly does not waste lines on parameter documentation, and adds relevant meaning about what the call supplies, not how it is called.

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 names a specific action and resource ("Returns the complete token set") and enumerates its contents: colors with semantic variants, typography scale, spacing scale, border radius, shadows. An agent knows exactly what payload to expect. It stops short of differentiating itself from the design-system-level siblings, so the distinction is only implicit.

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 directive "ALWAYS call this before writing CSS, Tailwind config, CSS variables, or any styling code" is as explicit a when-to-use statement as a tool can make, and "Never use values outside these tokens" enforces the constraint. The remaining gap is that it doesn't name an alternative for checking higher-level design system rules, so the agent must infer whether to also consult get_design_system.

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