Skip to main content
Glama

color_convert

Read-onlyIdempotent

Color converter — hex/rgb/hsl plus hsv, cmyk, lab (D50) and oklch

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
bNoBlue, 0-255
gNoGreen, 0-255
rNoRed, 0-255 (with clamp true, values outside are clamped)
hexNoA hex color, for example #1a73e8 or 1a73e8 (3 or 6 digits).
clampNoClamp r, g, b to 0-255 and report each change in 'clamped', instead of an error

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / hex / description
      Added value: +"A hex color, for example #1a73e8 or 1a73e8 (3 or 6 digits)."
  2. Changed10 schema fields changed
    • addedInput schema / properties / b / description
      Added value: +"Blue, 0-255"
    • removedInput schema / properties / b / maximum
      Removed value: -255
    • removedInput schema / properties / b / minimum
      Removed value: -0
    • addedInput schema / properties / clamp
      Added value: +{
      +  "description": "Clamp r, g, b to 0-255 and report each change in 'clamped', instead of an error",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / g / description
      Added value: +"Green, 0-255"
    • removedInput schema / properties / g / maximum
      Removed value: -255
    • removedInput schema / properties / g / minimum
      Removed value: -0
    • addedInput schema / properties / r / description
      Added value: +"Red, 0-255 (with clamp true, values outside are clamped)"
    • removedInput schema / properties / r / maximum
      Removed value: -255
    • removedInput schema / properties / r / minimum
      Removed value: -0
  3. First observed

TDQS

B3.2/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 the supported space list (including Lab D50 and OKLCH, useful specifics) but says nothing about return shape or whether all representations are returned at once.

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?

A single front-loaded line with no filler; the format enumeration is the highest-value information. It is a fragment rather than a sentence, but nothing is wasted.

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?

For a simple, fully-annotated, fully-described-schema conversion tool this is nearly adequate, but with no output schema the agent cannot tell what comes back — all conversions or a single target — and that gap is unaddressed.

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 coverage is 100% — r/g/b ranges, hex format, and the clamp behavior are all documented in the schema, so the baseline of 3 applies. The description's format list loosely maps to the alternative input modes but adds no syntax or mutual-exclusivity detail.

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?

Names a specific verb+resource (color conversion) and enumerates the supported color spaces — hex/rgb/hsl plus hsv, cmyk, lab (D50), oklch — which clearly separates it from siblings like image_convert or case_convert. It stops short of stating conversion direction (any-to-any vs. hex-to-X), so not quite 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?

No when-to-use guidance, no alternatives named, no preconditions. The description only says what formats exist, leaving the agent to infer that this is the tool for any color-space transformation rather than a 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