Skip to main content
Glama

Color converter

color_convert
Read-onlyIdempotent

Convert a color between hex, RGB, HSL and CMYK formats, accepting names plus rgb() and hsl() inputs, so you can reuse the same color across different tools.

Instructions

Convert a color between hex, RGB, HSL and CMYK. Accepts hex, rgb(), hsl() or basic names. (Same as IT-Tools /color-converter.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "color": "<color>"
    },
    "name": "color_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value by listing which input notations are accepted, but it is silent on the result: whether the response contains a single converted value, all four representations, or normalized fields — a meaningful gap given there is no output schema.

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?

Two sentences, front-loaded with the purpose and then the input formats, with zero redundancy. The trailing '(Same as IT-Tools /color-converter.)' is borderline filler but does provide provenance for agents familiar with that reference implementation.

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, annotation-covered, side-effect-free conversion utility with no output schema, this is nearly complete: the agent knows what it does and what input forms are legal. The only omission is the shape of the return value, which some agents would want before choosing this over another conversion path.

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 single parameter is fully undocumented in the schema (0% coverage, bare type: string), and the description compensates well by naming the accepted notations: hex, rgb(), hsl(), and basic color names. It stops short of giving examples or stating case-sensitivity, so it is strong but not exhaustive.

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 and resource ('Convert a color') and enumerates both the supported source formats (hex, RGB, HSL, CMYK) and accepted input syntaxes. It doesn't explicitly contrast with siblings, but the color domain is unambiguous next to case_convert or number_base_convert.

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 implied by the format list — an agent can infer this is the tool to reach for when translating a color value between notations. There is no explicit when-to-use/when-not statement, no mention of alternatives, and no prerequisites, which keeps it at minimum-viable guidance.

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