Skip to main content
Glama

Generate color palette

generate_color_palette
Read-only

Generate a perceptually uniform OKLCH color palette from a brand color: 18-step scales for brand/surface/error/accents, semantic tokens (shadcn/ui compatible), light+dark modes. Returns a shareable standby.design/system URL and a compact summary. Always give that URL to the user — the link is the deliverable; it opens the live system in the browser. Use export_design_system for full CSS/Tailwind output.

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"balanced": step 500 is always the perceptual midpoint (even light/dark distribution). "exact": step 500 keeps the input color's lightness.
accentsNoUp to 10 additional named accent colors. Replaces the existing accent list when provided; pass [] to remove all accents. Default: Success/Warning/Info, auto-derived.
brandHexNoBrand color as 6-digit hex, e.g. "#335A7F". The palette midpoint is derived from this.
brandPinNoPin the primary token to the exact input hex instead of the palette step.
errorPinNo
themeNameNoName of the design system (appears in exports and page title).
bgColorHexNoSurface tint color as hex, or "auto" to derive from the brand color (default).
brandInvertNoFor pinned brand: mirror lightness in dark mode (e.g. black buttons in light mode, white in dark).
chromaScaleNoSurface saturation 0–1 (0 = grey surfaces, 1 = vibrant). Default 0.25.
errorInvertNo
errorColorHexNoError/destructive color as hex, or "auto" to derive from the brand hue (default).
fgContrastModeNoText color strategy on colored backgrounds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / accents / description
      Previous value: -"Up to 3 additional named accent colors. Replaces the existing accent list when provided; pass [] to remove all accents. Default: Success/Warning/Info, auto-derived."New value: +"Up to 10 additional named accent colors. Replaces the existing accent list when provided; pass [] to remove all accents. Default: Success/Warning/Info, auto-derived."
    • changedInput schema / properties / accents / maxItems
      Previous value: -3New value: +10
  2. 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."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only carry readOnlyHint/openWorldHint, so the description usefully adds that the output is a URL plus a compact summary and that the URL is the actual deliverable that opens a live system. It does not discuss auth, latency, or state persistence (whether the 'modify' via url param is server-side or hash-encoded), leaving a small gap.

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?

Three tight sentences, front-loaded with what is generated and what is returned, then the agent instruction. No filler, and the alternative tool is mentioned last where it does not dilute the primary purpose.

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?

For a 13-param tool with no output schema, the description covers the essential missing piece (what is returned: URL + summary) and defers per-field semantics to the 85%-covered schema. It stops short of explaining interactions between params (e.g. brandPin with brandInvert), so it is strong but not exhaustive.

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 85%, so the schema already documents params like mode, accents, chromaScale and the pin/invert flags in depth. The description adds almost no parameter-level detail beyond restating that scales derive from the brand color, so the baseline 3 is appropriate.

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 (generate) and resource (OKLCH color palette) with concrete scope: 18-step scales, semantic tokens, light+dark modes. It also names its outcome artifact (a shareable standby.design URL), which lets an agent distinguish it from siblings like export_design_system.

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?

Explicitly routes the agent: 'Use export_design_system for full CSS/Tailwind output' names the alternative and the condition selecting it, and 'Always give that URL to the user' prescribes post-invocation behavior. This is exactly the when/when-not guidance the dimension asks for.

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.