Skip to main content
Glama

mix_colors

Blend up to 12 colors into one. Each color may be a hex (#d2bc93), a CSS name (red), an RNV brand name (brand gold, near-black), or a saved-palette reference (Spring line, or 'Spring line:2' for its 2nd swatch). Optional integer weights bias the blend (defaults to equal). mode selects the model: rgb/hsv/lab are digital blends (lab is perceptual and the default, best for on-screen color); paint mixes pigments via Kubelka-Munk physics (colors darken like real paint, use it for physical-media matching); ryb is the artist's color wheel; cmy is subtractive like printer inks. Returns hex and rgb. Reach for paint when BLENDING brand colors into a new one, and lab when SAMPLING between them: lab averages chroma toward the centroid of its ingredients, which is right for finding a midpoint and wrong for making a new color. RNV's #00b0a0 was blended in paint; the same ingredients at the same weights in lab give #9cc1a5, 15.94 away and far closer to the brand gold it exists to be distinguishable from. paint works per RGB channel, so an ingredient with an empty channel (pure digital primaries such as #0000ff or #ffff00) dominates that channel: yellow + css:blue comes out black in paint, where ryb gives green. For pigment-like results use pigment-like colors, or ryb for idealized primaries. Brand names win over CSS names on collision: 'blue' is RNV blue, css:blue is #0000ff. Read-only and deterministic: it computes a result and stores nothing, so it is safe to call repeatedly with no side effects. Use to combine multiple colors into a single blend; to convert one color between formats use convert_color, and to measure how far apart two colors are use color_difference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNolab
colorsYes
weightsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it declares the tool 'Read-only and deterministic ... stores nothing, so it is safe to call repeatedly with no side effects.' It also discloses non-obvious behavior such as paint's per-RGB-channel dominance (yellow + css:blue comes out black) and the brand-name-over-CSS-name collision rule.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded and every section is functional, but the description is long and the #00b0a0/#9cc1a5 numeric anecdote plus the channel-dominance example push well past what an agent needs to select and call the tool, somewhat diluting signal.

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 3-parameter tool with an output schema, the description covers inputs, all mode semantics, default selection, collision rules, edge cases, side-effect profile, and sibling disambiguation. The output schema covers the return shape ('Returns hex and rgb' is also noted), so nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully explain the three parameters — and it does. It enumerates the accepted color formats (hex, CSS name, RNV brand name, saved-palette reference with swatch index syntax), explains weights as optional integers defaulting to equal, and spells out the semantics of every mode value including which is the default (lab).

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 first sentence states a specific verb and resource with scope: 'Blend up to 12 colors into one.' It further distinguishes itself by naming the exact sibling alternatives (convert_color for format conversion, color_difference for distance measurement), so an agent can route correctly without opening any schema.

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?

It gives explicit when-to-use guidance for each mode: 'paint when BLENDING brand colors into a new one, and lab when SAMPLING between them,' with a concrete failure anecdote (#00b0a0 vs #9cc1a5). It closes with an explicit routing block naming when to use convert_color and color_difference instead.

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.