Skip to main content
Glama

get_design_tokens

Retrieve metadata-discovered design token guidance with source confidence and evidence from Storybook component metadata, then filter results with an optional query.

Instructions

Returns metadata-discovered Compass design token guidance with source confidence and evidence.

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_design_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum entries to return. Defaults to 50 when omitted, with a hard maximum of 50.
queryNoOptional free-text filter matched against foundation metadata fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'Returns' implies read-only, and the mention of 'source confidence and evidence' hints at provenance metadata in the output, but nothing is said about filtering behavior, result ordering, empty-result handling, or how confidence values should be interpreted.

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?

A single front-loaded sentence with no padding. The phrasing 'metadata-discovered' is jargon-heavy but it is not wasted space; nothing redundant is included.

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 two-optional-parameter read tool with no output schema and no annotations, the description gives the purpose and a hint at return fields (confidence, evidence) but omits return shape, pagination/default behavior context, and sibling routing. Adequate but with clear gaps.

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%: both limit (with default and hard maximum) and query (free-text against foundation metadata fields) are fully documented in the schema. The description adds no meaning beyond that, which meets the baseline for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

It names a verb (returns) and a resource (Compass design token guidance), plus provenance qualifiers (metadata-discovered, source confidence, evidence). But 'design token guidance' is vague against siblings like get_color_palette, get_typography_guidance, and get_spacing_guidance — an agent cannot tell whether this returns token values, guidance text, or a superset of the specialized tools.

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 when-to-use guidance, no mention of prerequisites, and no reference to any alternative tool. The agent is left to infer whether to query this or one of the more specific guidance tools.

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