Skip to main content
Glama

convert_hex_rgb_hsl

Convert colors between HEX, RGB, RGBA, HSL, and HSLA formats. Handles gamut clipping for out-of-range values.

Instructions

Bidirectional color format translator between HEX, RGB, RGBA, HSL, and HSLA with gamut clipping. (0.005 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavior disclosure. It adds useful traits: bidirectionality, gamut clipping, and a concrete cost of 0.005 USDC on Base L2. However, it does not describe the output/return behavior or how the payment signature is enforced, leaving some important behavioral context unclear.

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?

The entire description is one focused sentence that front-loads the tool's purpose and key behavior, then appends the cost compactly. There is no filler, tautology, or unnecessary restatement of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a conversion tool with no output schema, no annotations, and a generic payload string parameter. The description does not provide an example payload, specify the expected return format, or explain how the payment signature flow works beyond the price. An agent could not reliably construct a correct invocation from this description alone.

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 schema descriptions are generic, especially the payload field, so the description adds real semantic value by naming the accepted color formats and emphasizing bidirectionality. It still lacks an exact payload structure or example, which prevents a perfect score, but the added meaning goes beyond the schema's generic placeholder.

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 states a specific action and resource: a bidirectional translator between HEX, RGB, RGBA, HSL, and HSLA color formats. This clearly differentiates it from color-related siblings like calculate_color_contrast_wcag and extract_dominant_color_palette, which are about contrast and extraction rather than conversion.

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?

The description makes it clear the tool is for converting among the named color formats, so an agent can infer when to use it. It does not explicitly list exclusions or alternatives, but no sibling tool directly overlaps with this conversion function, so the lack of an explicit 'when not to use' is not a major gap.

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

Deploy Server

Other Tools