Skip to main content
Glama

Generate spacing & layout tokens

generate_space_tokens
Read-only

Generate spacing tokens (3xs–3xl), breakpoints, container widths, prose measure, and aspect ratios. Returns a shareable standby.design/system URL and a summary. Always give that URL to the user — the link is the deliverable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoExisting standby.design URL (or raw hash) to modify. Only this tool's section is changed; color/type/shape/icon/spacing/motion settings from other tools are preserved. Omit to start fresh from defaults.
modeNo"harmonic": multiples of the base (default). "geometric": compound ratio steps.
snapNoSnap token values to a sensible grid (default true).
ratioNoRatio for geometric mode (default 1.272).
baseRemNoBase spacing in rem (default 1.0).
containersNoReplace the container list. Defaults: prose 680, narrow 960, default 1200, wide 1440, full 1920.
fluidMaxVwNoUpper fluid viewport anchor in px (default 1920).
fluidMinVwNoLower fluid viewport anchor in px (default 375).
multiplierNoUniform scale factor on all tokens (default 1.0).
proseMaxChNoProse measure in ch (default 65).
breakpointsNoReplace the breakpoint list, e.g. [{"name":"sm","minPx":640},...]. Defaults: sm 640, md 768, lg 1024, xl 1280, 2xl 1536.
aspectRatiosNoReplace the aspect ratio list, e.g. [{"name":"video","w":16,"h":9}].
includeReciprocalsNoAlso export flipped (portrait) variants of each ratio (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Existing standby.design URL (or raw hash) to modify. Only this tool's section is changed; color/type/shape/icon/spacing settings from other tools are preserved. Omit to start fresh from defaults."New value: +"Existing standby.design URL (or raw hash) to modify. Only this tool's section is changed; color/type/shape/icon/spacing/motion settings from other tools are preserved. Omit to start fresh from defaults."
  2. Changed1 schema field changed
    • changedInput schema / properties / containers / description
      Previous value: -"Replace the container list. Defaults: prose 680, narrow 880, default 1200, wide 1440."New value: +"Replace the container list. Defaults: prose 680, narrow 960, default 1200, wide 1440, full 1920."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description does not contradict this. The description adds valuable behavioral context by stating the output format ('Returns a shareable standby.design/system URL and a summary') and the required user-facing action ('Always give that URL to the user'). This goes beyond the annotation and clarifies what the tool produces and how the agent should behave.

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 two sentences long with no wasted words. The first sentence fronts the main purpose, and the second sentence immediately conveys the critical deliverable instruction. It is tightly written and all content is necessary.

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?

Given the high schema coverage and the absence of an output schema, the description covers the essential operational details: what is generated, what is returned, and the crucial instruction to always hand the URL to the user. It does not explicitly discuss when to use this tool versus siblings, but that gap is partially addressed by the clear purpose. Overall, it is complete for the agent to call it correctly.

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%, so every parameter is already documented in the schema. The description does not add any additional parameter-level semantics beyond what the schema provides. It mentions the token types (3xs–3xl, breakpoints, etc.) but those are also reflected in parameter names and schema descriptions. Baseline 3 is appropriate since the schema carries the full parameter documentation burden.

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 clearly states a specific verb ('Generate') and the exact resources (spacing tokens 3xs–3xl, breakpoints, container widths, prose measure, aspect ratios). This distinguishes it from sibling tools like generate_color_palette or generate_type_scale, which target different design primitives. The purpose is unambiguous.

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

Usage Guidelines3/5

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

The description implies this tool is for spacing/layout token generation, but it does not explicitly state when to use it versus alternatives or when not to use it. It only provides guidance on delivering the output URL ('Always give that URL to the user'), not on tool selection. Some guidance is implied by the domain, but it lacks direct exclusions or alternatives.

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.