Skip to main content
Glama
dgesteves
by dgesteves

Get design tokens

get_tokens
Read-onlyIdempotent

List design tokens with resolved and dark-mode values plus Tailwind or CSS variable usage. Filter by category or substring to replace raw hex, px, and default palette classes.

Instructions

List design tokens with resolved values, dark-mode values and how to use each (Tailwind class or CSS variable). Filter by category (color, spacing, radius, typography, shadow, other) or a substring. Use these instead of hex codes, px values or Tailwind default palette classes.

Input Schema

NameRequiredDescriptionDefault
pathNoIn a monorepo served from its root: the file you are editing, or a project folder, relative to the root, to answer from that project. Without it, every project is listed together. Ignored in a single project.
queryNoSubstring to match in names, usages or descriptions.
categoryNoOnly tokens of this category.

Output Schema

NameRequiredDescriptionDefault
tokensYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered structurally. The description adds useful context that results include resolved dark-mode values and per-token usage guidance, which goes beyond annotations. It does not describe pagination, result-size limits, or how monorepo path scoping behaves, so it is adequate but not rich.

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 tight sentences, front-loaded with purpose and result shape, then filters, then usage guidance. No wasted 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?

An output schema exists, so return values need not be explained; the description correctly focuses on selection and usage. Combined with full annotation coverage and full schema coverage, this is largely complete. Minor gap: no mention of result-size or how the path parameter behaves in monorepos appears in the description, though the schema covers it.

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%, so parameters are fully documented in the schema and the baseline is 3. The description restates the category enum values and the substring filter, adding only marginal meaning 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?

States a specific verb (List) and resource (design tokens) and enumerates what each result carries: resolved values, dark-mode values, and usage guidance. An agent can distinguish this from list_components or search_components without opening the schema.

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?

Provides explicit when-to-use guidance for the output: 'Use these instead of hex codes, px values or Tailwind default palette classes.' It also names filter mechanisms. However, it does not name a sibling alternative or state when-not-to-use, so it stops short of a 5.

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