Skip to main content
Glama
grayscale-mcp

grayscale-mcp

by truefrontier

Generate luminance-based palettes

generate_palette
Read-onlyIdempotent

Generate a grayscale luminance scale and matching palettes for each base color, preserving hue and saturation per shade, with swatches and a share link for consistent design-system colors.

Instructions

Generate a grayscale luminance scale plus one palette per base color, exactly as grayscale.design/app does. Each shade matches the grayscale shade's luminance while keeping the base hue and saturation. Returns every swatch (label, hex, rgb, hsl, oklch, luminance) and a share link that opens the same palette on the site.

Input Schema

NameRequiredDescriptionDefault
lumsNoCustom luminance targets (0-100, WCAG relative luminance x100), lightest first. Same as dragging the site sliders.
countNoNumber of shades (site +/- buttons, 3-20).
colorsNoBase colors, one palette each.
presetNoLuminance preset from the site menu: default (12 shades, 50-1100), tailwind (11 shades, 50-950), radix (12 steps), or bell/linear/dark/light which redistribute the current min..max range.
share_urlNoA grayscale.design/app?... share link to load instead of colors/lums.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and closed-world safety. The description adds meaningful behavior beyond that: it describes the luminance-matching algorithm, site parity, and the returned swatch fields plus share link. It does not discuss failure behavior or limits, but it meaningfully increases transparency.

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 three focused sentences with no filler. It front-loads the core purpose, then explains the luminance mechanism, then summarizes the return value.

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?

No output schema exists, but the description explains the returned swatch fields and share link. Annotations cover safety and idempotency, and the schema fully documents the five optional parameters, so the definition is complete enough to call 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 coverage is 100%, so the detailed parameter semantics are already supplied by the schema. The description adds little parameter-level meaning beyond explaining the overall site-parity behavior, which makes a baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb, 'Generate', and resource, 'palette', and explains that it produces a grayscale luminance scale plus one palette per base color. It does not name or differentiate itself from siblings such as luminance_scale or export_palette, so it falls short of full sibling-aware clarity.

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

Usage Guidelines2/5

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

The description explains what the tool does but gives no explicit when-to-use, when-not-to-use, or alternative-tool guidance. An agent must infer usage from the schema and sibling names rather than from the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.