Skip to main content
Glama
lnksoul1

UI Design MCP Server

by lnksoul1

Generate Spacing Scale

ui_generate_spacing_scale
Read-onlyIdempotent

Generate a consistent spacing scale for layout and components using linear, geometric, or fibonacci growth. Choose a 4 or 8px base unit for named steps, px/rem values, and CSS custom properties.

Instructions

Generate a consistent spacing scale for layout and component spacing.

Supports multiple generation strategies: linear (equal steps), geometric (exponential growth), and fibonacci (golden ratio progression).

Args:

  • base_unit (number, optional): Base unit in px — 4 or 8. Default: 8

  • strategy (string, optional): Generation strategy — 'linear', 'geometric', 'fibonacci'. Default: 'geometric'

  • response_format (string, optional): 'markdown' or 'json'. Default: 'markdown'

Returns: Spacing scale with named steps (0 to 3xl), px/rem values, usage guidance, and CSS custom properties.

Examples:

  • 8px geometric scale (most common): base_unit=8, strategy="geometric"

  • 4px fibonacci scale for fine control: base_unit=4, strategy="fibonacci"

  • 8px linear scale: base_unit=8, strategy="linear"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
strategyNoScale generation strategygeometric
base_unitNoBase unit in px (4 or 8)
response_formatNoOutput formatmarkdown
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is known. The description adds useful behavioral context beyond annotations, such as the return structure ('named steps (0 to 3xl), px/rem values, usage guidance, and CSS custom properties') and the meaning of the generation strategies. No contradictions with annotations.

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 compact and well-organized: a single-purpose sentence, a strategies sentence, an Args list, a Returns clause, and examples. Every sentence adds value, and the most important information is front-loaded.

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?

For a stateless generation tool with no output schema, this description covers all necessary aspects: purpose, parameters with defaults, return value description, and usage examples. It is complete for an agent to invoke the tool correctly.

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?

Schema coverage is 100% but property descriptions are minimal (e.g., 'Scale generation strategy'). The tool description expands on this by explaining each strategy ('linear (equal steps), geometric (exponential growth), and fibonacci (golden ratio progression)') and providing example parameter combinations, adding meaning beyond the schema.

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 opens with a specific verb+resource: 'Generate a consistent spacing scale for layout and component spacing.' This clearly distinguishes it from sibling generators like type scale or color palette, and the mention of multiple strategies further solidifies its 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 when to use the tool (for layout and component spacing) and gives examples for different strategies ('8px geometric scale (most common)', '4px fibonacci scale for fine control'). However, it does not explicitly mention alternatives or when not to use this tool, so it stops short of full when/why-not guidance.

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/lnksoul1/prism-ui-design-mcp'

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