Skip to main content
Glama

color_mix

Mix two hex colors together by providing color codes and a blend ratio between 0 and 1.

Instructions

Mix two hex colors together with a given ratio.

Parameters:
    color_a — First hex color without # (e.g. 'FF0000').
    color_b — Second hex color without # (e.g. '0000FF').
    ratio — Mix ratio 0.0-1.0 (default: 0.5). 0 = all color_a, 1 = all color_b.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
color_aYes
color_bYes
ratioNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It states it mixes colors with a ratio, but does not specify the mixing method (e.g., RGB linear interpolation), output format, or behavior with invalid input (e.g., non-hex strings). This is minimal transparency.

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 description is short and front-loaded with the purpose. The parameter list is clear but slightly verbose; it could be condensed. Overall, no extraneous information.

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?

Given the existence of an output schema, the description does not need to detail return values. However, it lacks edge-case handling, input validation notes, or mixing domain context (e.g., color space). Adequate for a simple tool but could be more complete.

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?

The description adds meaning to all three parameters beyond the input schema: it explains that color_a and color_b are hex colors without '#', provides examples, and defines the ratio range and default. Despite 0% schema coverage, the description covers all parameters well.

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 description clearly states 'Mix two hex colors together with a given ratio,' which is a specific verb-resource combination. It distinguishes itself from sibling color tools like complementary_color or color_tint_shade by focusing on mixing two colors with a ratio.

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 provides no explicit guidance on when to use this tool versus alternatives like complementary_color or color_blindness_sim. It does not mention scenarios, prerequisites, or exclusions, relying only on the implied use case of mixing two colors.

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/scotia1973-bot/api-hub'

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