Skip to main content
Glama

Archive Gradient — Lab-Interpolated Colour Journey

palette_gradient
Read-only

Generate a smooth gradient between archive colours, snapping each interpolated stop to the nearest real colour. Choose linear or chroma-preserved interpolation to control midpoint saturation.

Instructions

Generate a perceptually smooth gradient between 2-5 archive anchor colours. Each interpolated stop snaps to the nearest real archive colour by CIEDE2000. Anchor stops are kept true to their source. Choose linear (physically accurate Lab interpolation) or chroma_preserved (LCh interpolation, short-arc hue, avoids desaturated midpoints). Returns stop array, CSS linear-gradient string, or SVG swatch bar. Use for design briefs, colour journey visualisations, and gradient systems.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anchorsYes2-5 hex values (#RRGGBB) or exact archive colour names
stepsNoTotal stops including anchors (default 7, max 20)
pathNolinear: straight Lab lerp (may have neutral midpoint). chroma_preserved: LCh short-arc, saturation maintained.chroma_preserved
snap_to_archiveNoSnap each stop to nearest archive colour (default true)
archiveNoRestrict snapping to this archive name e.g. Victorian
output_formatNostops: array of colour objects. css: linear-gradient string. svg: swatch bar.stops

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
resultNo
errorNo
Behavior5/5

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

Annotations provide readOnlyHint=true, consistent with a generation tool. Description elaborates on key behaviors: interpolation methods (linear vs chroma_preserved), snapping to nearest archive colour via CIEDE2000, anchor stops kept true, and output formats. No contradictions; adds significant behavioral detail beyond 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?

Three sentences, no wasted words. First sentence states purpose and scope, second details key parameters (interpolation, snapping, anchor behavior), third specifies output formats and use cases. Information density is high without being verbose.

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?

Covers essential aspects: anchor count, interpolation methods, snapping to archive, output formats. With output schema present (context signal), return structure is handled. Missing details like default values for steps and snap_to_archive are covered in schema. Adequate for a tool with moderate complexity.

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?

Input schema has 100% coverage with descriptions. Description adds meaningful context: explains the difference between 'linear' (straight Lab lerp) and 'chroma_preserved' (LCh short-arc, avoids desaturated midpoints), details that anchor snaps are true to source, and explains output formats. This enriches the schema without repeating it.

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?

Description clearly states 'Generate a perceptually smooth gradient between 2-5 archive anchor colours', specifying the action (generate), resource (gradient), and constraints (2-5 anchor colours). It distinctively focuses on color science (Lab interpolation, CIEDE2000) which differentiates it from sibling tools like palette_generate or colour_mix.

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?

Provides explicit use cases: 'Use for design briefs, colour journey visualisations, and gradient systems.' No explicit when-not-to-use or alternatives, but the context of siblings (e.g., palette_generate, colour_mix, palette_specify) makes the gradient-specific purpose clear. Could be improved by noting when to avoid (e.g., for single colour generation).

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/DigbyO/colour-memory-api'

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