Skip to main content
Glama

IA-QA — 130+ QA & Dev Tools for AI Agents

color_convert

Read-onlyIdempotent

Convert a color between HEX, RGB, and HSL formats. Use when translating design tokens between CSS notations, verifying color accessibility, or normalizing color values from user input. Accepts #rrggbb, #rgb, rgb(r,g,b), or hsl(h,s%,l%).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesColor value to convert, e.g. "#ff6b6b", "rgb(255,107,107)", "hsl(0,100%,71%)"

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bNo
gNo
rNo
hexNo
hslNo
rgbNo
inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "b": {},
      +  "g": {},
      +  "hex": {},
      +  "hsl": {
      +    "type": "string"
      +  },
      +  "input": {},
      +  "r": {},
      +  "rgb": {
      +    "type": "string"
      +  }
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/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 destructiveHint=false, so the agent knows this is a safe read operation. The description adds accepted input formats but does not disclose additional behavioral traits (e.g., output behavior, error handling). No contradiction.

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?

Three concise sentences with no filler: the first states purpose, the second gives usage context, and the third specifies accepted formats. Every sentence earns its place.

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 simple one-parameter converter with a present output schema and thorough annotations, the description adequately covers purpose, usage, and input formats. No critical gaps are apparent.

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?

The single parameter 'input' is fully described in the schema with concrete examples (100% coverage). The description adds a compact pattern summary, but this overlaps with the schema's examples, so the added value is marginal.

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 starts with a specific action 'Convert a color between HEX, RGB, and HSL formats', naming both the resource (color) and the exact formats. This clearly differentiates it from sibling tools like case_convert or base64_encode.

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

Usage Guidelines4/5

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

Explicitly states when to use the tool (translating design tokens, verifying accessibility, normalizing user input) but does not mention when not to use or mention alternatives such as check_contrast_ratio, which is a related sibling.

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