Skip to main content
Glama

A1 Gallery

Analyse design tokens

analyze_design_tokens
Read-only

Aggregate the MEASURED DESIGN VALUES across many sections at once — what a kind of section, on a kind of site, actually looks like in numbers. Given a section type (e.g. hero, pricing) and optionally a website type (portfolio, agency, landing, shop) and an industry category (saas, fintech, health), returns quartiles (p25/median/p75) for heading size, body size, the heading:body scale ratio, section padding, container max width and corner radius; the most common heading typefaces; the most common accent colours as hex; and how often shadows, borders, gradients and backdrop blur are used. Use it to ground a design decision in what real sites do — 'what type scale do agency heroes use', 'how much padding do landing-page pricing sections have', 'what container width is normal' — or to compare something you have built against real sites. Quartiles, not averages, because these values are long-tailed. Narrow slices — a sectionType and websiteType together — often resolve to only a handful of sections; when that happens the response carries lowSample: true and the numbers describe those few sites rather than a norm, so widen the filter or say so. Heading typefaces are de-hashed (bundlers rewrite font-family to names like __Inter_abc123) and accent colours are grouped so near-identical hexes count as one. Use search_sections to see individual examples, analyze_section_content for what sections SAY rather than how they look.

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": "analyze_design_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoRestrict to sites in this industry, e.g. 'saas', 'fintech', 'health', 'architecture'. Common aliases are resolved.
sectionTypeNoSection type to analyze, e.g. 'hero' or 'pricing'. Omit to analyze across all types.
websiteTypeNoRestrict to sites of this type (the shape of the site), e.g. 'portfolio', 'agency', 'landing', 'shop'.

Output Schema

NameRequiredDescriptionDefault
noteNoPresent when nothing matched or the sample is small
scopeNoWhat was analysed
radiusPxNoQuartiles for corner radius
lowSampleNoTrue when the sample is too small to generalise from
bodySizePxNoQuartiles for body size
scaleRatioNoQuartiles for heading:body ratio
effectShareNoShare of sections using each effect
headingSizePxNoQuartiles for heading size
containerMaxPxNoQuartiles for container max width
sectionPaddingPxNoQuartiles for section padding
topAccentColoursNoMost common accent colours
topHeadingFamiliesNoMost common heading typefaces

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "Restrict to sites in this industry, e.g. 'saas', 'fintech', 'health', 'architecture'. Common aliases are resolved.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • changedInput schema / properties / websiteType / description
      Previous value: -"Restrict to sites of this type, e.g. 'portfolio', 'agency', 'landing', 'shop'."New value: +"Restrict to sites of this type (the shape of the site), e.g. 'portfolio', 'agency', 'landing', 'shop'."
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behaviour the annotations do not: quartiles rather than averages because values are long-tailed, lowSample:true signalling when a slice resolves to only a handful of sections, and de-hashing of font families plus near-identical hex grouping. That is above-baseline context, though it does not describe pagination or any limit on how many sections are scanned.

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 in the first clause and the rest is ordered from return shape to caveats to alternatives, so it reads well despite being long. Some material is padded, particularly the three parenthetical example questions and the summary of returned metrics, which the output schema already documents.

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?

Covers what the tool does, its data-quality caveats, and its sibling alternatives thoroughly; the output schema exists, so enumerating the return fields is optional rather than required. What is missing is any sense of scale or cost — how many sections back the aggregate, or whether the result is capped — beyond the lowSample flag.

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?

With 100% schema description coverage the baseline is 3, and the description adds real meaning on top: example values for each parameter (hero/pricing, portfolio/agency/landing/shop, saas/fintech/health) and, more importantly, the interaction effect — combining sectionType and websiteType narrows the sample and can trigger lowSample. It stops short of saying how omission of sectionType is handled (analyze across all types), which the schema covers but the description does not reinforce.

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 and resource ('Aggregate the MEASURED DESIGN VALUES across many sections') and enumerates exactly what is returned (quartiles for heading/body size, scale ratio, padding, container width, radius, typefaces, accent hexes, effect usage). It also explicitly contrasts itself with search_sections and analyze_section_content, so an agent can place it among siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use framings ('ground a design decision in what real sites do', compare your own build against real sites) with example queries, and names the alternatives for other needs: search_sections for individual examples, analyze_section_content for what sections say rather than how they look. It also warns about the narrow-slice condition and tells the agent to widen the filter or disclose the limitation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.