Skip to main content
Glama

Convert color

bursia_color_convert
Read-onlyIdempotent

Convert a hex color to RGB and HSL and compute its relative luminance. Returns all three forms. Pure computation, free.

Input Schema

NameRequiredDescriptionDefault
hexYesA hex color: #RGB or #RRGGBB, e.g. #f5a524.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / hex / description
      Added value: +"A hex color: #RGB or #RRGGBB, e.g. #f5a524."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is fully covered by structured data. The description adds value on top: it discloses that all three representations are returned and that the call is pure computation with no cost. It does not describe output shape or luminance range, but no output schema exists, so that omission is a minor gap.

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?

It is three short sentences with the verb and output list front-loaded, and no filler. There is minor redundancy: "Returns all three forms" largely restates the conversion list, and "free" is a slight marketing flourish rather than tool semantics.

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?

For a one-parameter pure function with no output schema, the definition covers what the tool does, what it returns conceptually, and its cost and side-effect profile. It omits the concrete return format (for example, whether RGB is an object or a string, and the luminance scale), which is a residual gap but not a blocker for correct invocation.

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?

There is a single parameter with 100% schema description coverage, including the accepted #RGB and #RRGGBB forms and an example. The description adds nothing beyond the schema for this parameter, so the baseline of 3 applies.

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?

The definition names a specific verb and resource (convert a hex color) and enumerates the outputs: RGB, HSL, and relative luminance. An agent can tell the purpose apart from most siblings, such as case_convert or unit_convert. The one real near-neighbor, bursia_contrast_ratio, is never mentioned, so there is no explicit differentiation from it.

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

Usage Guidelines3/5

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

Usage is only implied: if you have a hex color and want other representations, call this tool. There is no statement of when to prefer it over bursia_contrast_ratio, which also consumes colors, and no input validity guidance beyond what the schema already says. "Pure computation, free" hints that it is safe to call liberally, but that is a cost note, not a usage rule.

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.

Resources