Skip to main content
Glama
HtetOoWaiYan

Colors MCP Server

by HtetOoWaiYan

Mix Colors

colors_mix
Read-onlyIdempotent

Combine two colors using perceptual interpolation across spaces like oklch, rgb, or hex. Set a custom ratio to blend colors accurately for UI, design, and data visualization tasks.

Instructions

Mix two colors with perceptual interpolation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoInterpolation color space (default: oklch)oklch
ratioNoMix ratio (0.0 - 1.0, default 0.5)
color1YesColor string in any supported format (e.g., "#ff0000", "red", "rgb(255, 0, 0)", "oklch(0.6 0.2 29)")
color2Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds only 'perceptual interpolation,' which hints that mixing occurs in a perceptual space, but says nothing about which space is default, how out-of-gamut results are handled, or error behavior for invalid color strings.

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?

A single, front-loaded sentence with zero waste that leads with the verb and resource. Nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and says nothing about what the mixed color looks like or in which format it is returned. For a 4-parameter tool with an ambiguous ratio semantic, this is adequate but incomplete.

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 75%, so the baseline is 3, and the description adds no parameter detail at all. Notably, the direction of 'ratio' (whether 0.0 or 1.0 weights color1) is unresolved in both the schema and the description, which is a real semantic gap the description could have closed.

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 (mix) and resource (two colors) and narrows it with 'perceptual interpolation,' which cleanly separates it from siblings like colors_convert, colors_adjust, and colors_difference. It does not explicitly name or rule out any sibling, so it stops short of a 5.

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?

There is no statement of when to use this tool versus colors_adjust, colors_scale, or colors_difference, nor any prerequisite or exclusion. Usage is only inferable from the name and the word 'mix,' which is minimal guidance.

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