Analyse design tokens
analyze_design_tokensAggregate 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
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Restrict to sites in this industry, e.g. 'saas', 'fintech', 'health', 'architecture'. Common aliases are resolved. | |
| sectionType | No | Section type to analyze, e.g. 'hero' or 'pricing'. Omit to analyze across all types. | |
| websiteType | No | Restrict to sites of this type (the shape of the site), e.g. 'portfolio', 'agency', 'landing', 'shop'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when nothing matched or the sample is small | |
| scope | No | What was analysed | |
| radiusPx | No | Quartiles for corner radius | |
| lowSample | No | True when the sample is too small to generalise from | |
| bodySizePx | No | Quartiles for body size | |
| scaleRatio | No | Quartiles for heading:body ratio | |
| effectShare | No | Share of sections using each effect | |
| headingSizePx | No | Quartiles for heading size | |
| containerMaxPx | No | Quartiles for container max width | |
| sectionPaddingPx | No | Quartiles for section padding | |
| topAccentColours | No | Most common accent colours | |
| topHeadingFamilies | No | Most common heading typefaces |