analyze_scales
Analyzes design token scales to detect patterns like linear or modular, identifies outliers, and suggests improvements based on design principles.
Instructions
Analyze existing design token scales (spacing, typography, etc.). Detects mathematical patterns (linear, modular, fibonacci, etc.), identifies outliers, and suggests improvements based on design principles.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokens": "<tokens>"
},
"name": "analyze_scales"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | Token map to analyze (e.g., { 'spacing-0': '0px', 'spacing-1': '4px' }) | |
| dimension | No | Token dimension type for context-specific analysis | spacing |
| compareAgainst | No | Design principles to compare against |