Skip to main content
Glama

list_tokens

List CSS custom-property tokens in the theme contract, with category and required/optional filters, so you can inspect and theme design-system variables.

Instructions

List the CSS custom-property tokens in the theme contract (scripts/theme-contract.json): 128 required + 40 optional = 168 total. Categories: a11y, action, brand, code, fx, ink, interactive, lines, misc, motion, radius, semantic, shadow, space, surface, type, z-index. Spacing note: the NUMBERED scale --space-0…--space-9 is required and is what components read (cia.space(4) → var(--space-4)); the t-shirt names --space-2xs/xs/sm/md/lg/xl are optional aliases the library emits as var() references. Theme the numbered step, not the alias. Radius note: --radius-avatar/badge/button/card/input/modal were removed (nothing read them). The working per-component knobs are --btn-radius, --card-radius, --input-radius, --modal-radius, --badge-radius, --tag-radius, each cascading from a generic radius (e.g. --btn-radius: var(--radius-md, 0.25rem)).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
categoryNo
requiredNoFilter to required-only (true) or optional-only (false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the token population (128 required + 40 optional = 168), the full category set, which tokens were removed, and which aliases are optional. The gaps are pagination behavior and return shape, which it does not address despite limit/offset parameters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded with the count and categories up top. The spacing and radius notes are dense and somewhat verbose, but they supply interpretation guidance that would otherwise be unavailable given the absence of an output schema, so most sentences earn their place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no annotations and no output schema, the description explains the token domain thoroughly but omits pagination semantics for limit/offset and says nothing about the response shape. It is adequate but not 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 coverage is only 25%: only 'required' is documented in the schema. The description partially compensates for 'category' by enumerating the 17 valid category values, which is real added meaning. However, limit and offset — the pagination controls — are left entirely unexplained.

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?

States a specific verb and resource: 'List the CSS custom-property tokens in the theme contract (scripts/theme-contract.json)', plus concrete counts and categories. An agent can distinguish it from get_token and search_tokens by the browse-all framing, though the description never names those siblings to make the contrast explicit.

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?

There is no guidance on when to choose this over search_tokens, get_token, or list_themes. The spacing/radius notes explain how to interpret tokens, not when to call this tool, so usage remains only implicitly inferable from the 'List' verb.

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