Skip to main content
Glama

Resolve Token

tokens_resolve
Read-only

Resolve design token variables to concrete values, tracing the full chain and identifying which tokens are safe to override.

Instructions

Resolves any --bsi-, --it-, or $it- variable to its concrete value, following the full chain to a literal (e.g. --bsi-accordion-body-padding-x → --bsi-spacing-m → $it-spacing-m → $it-spacing-6x → 24px). Each hop in resolvedVia carries role and overridable: --bsi- hops (role bsi-component/bsi-global) are safe to override in project CSS at runtime; $it-/--it- hops (role dti) are central Design Tokens defined upstream, do not suggest overriding them directly; override the --bsi-* variable that consumes them instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variableYesToken name in any form: --bsi-*, --it-*, or $it-*

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
inputYes
valueYes
composedOfNo
resolvedViaYes
normalizedNameYes
ambiguousValuesNo
Behavior5/5

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

The description reveals the resolution process (following the full chain to a literal) and explains the semantics of each hop's role and overridable flag. This adds significant behavioral context beyond the readOnlyHint annotation, which is consistent. It also clarifies the distinction between bsi and dti token roles, helping the agent understand output implications.

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 well-structured: the first sentence states the core function, the second explains the output semantics, and the example chain is concise and illustrative. Every sentence adds value without redundancy or padding.

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

Completeness5/5

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

The description covers the tool's behavior, interpretation of results, and actionable guidance for overriding tokens. With a single parameter, complete schema coverage, and an output schema present, the description is thorough and self-sufficient for an agent to use correctly.

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?

The input schema already documents the parameter ('Token name in any form: --bsi-*, --it-*, or $it-*') with 100% coverage. The description reinforces this by showing an example but does not add new parameter-level meaning. Baseline of 3 is appropriate.

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?

The description states exactly what the tool does: resolves --bsi-, --it-, or $it- variables to their concrete literal values. It is specific and distinct from sibling tools like tokens_search or tokens_list_component_vars, which search/list rather than resolve. The example chain clarifies the scope.

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 description provides clear context on how to use the resolved output—explaining which hops are safe to override and which are not—and instructs to override --bsi-* variables rather than $it-/--it- ones. It does not explicitly contrast with sibling tools, but the usage intent is clear enough for an agent to decide when to invoke it.

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/Fupete/design-system-italia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server