Skip to main content
Glama

rgb_to_hsl

Convert RGB color values to HSL (Hue, Saturation, Lightness). Input red, green, blue integers (0-255).

Instructions

Convert RGB color values to HSL (Hue, Saturation, Lightness).

Parameters:
    red — Red value (0-255).
    green — Green value (0-255).
    blue — Blue value (0-255).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
redYes
greenYes
blueYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided. Description adds parameter ranges (0-255) but does not disclose behavioral traits like pure function behavior, output range specifics, or error handling. With output schema present, description partially compensates but remains minimal.

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?

Concise one-sentence description followed by clear bullet-point parameters. No extraneous text, but could include a note about output format.

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 conversion tool with output schema, the description is adequate. However, it omits detail about output ranges (e.g., hue 0-360, saturation/lightness percentages) which could be helpful for interpretation.

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?

Schema has 0% description coverage; description adds valid integer ranges (0-255) for each parameter, which is essential for correct usage. Adds meaningful detail beyond schema alone.

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?

Clearly states conversion from RGB to HSL with specific color model terms. Does not explicitly differentiate from sibling tools like hex_to_hsl or color_convert, but the name and description are unambiguous.

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 guidance on when to use this tool vs alternatives (e.g., hex_to_hsl, cmyk_to_hex). Lacks context for selection among color conversion tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scotia1973-bot/api-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server