Skip to main content
Glama

HSL converter

hopi_hsl_converter
Read-onlyIdempotent

Convert a hex colour code to hue, saturation and lightness (HSL), or convert HSL values to hex and RGB. Source: https://hopi.co.uk/hsl-converter/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hNoHue 0 to 360 (for hsl_to_hex)
lNoLightness 0 to 100 (for hsl_to_hex)
sNoSaturation 0 to 100 (for hsl_to_hex)
hexNoHex colour code, e.g. #1FE85C (for hex_to_hsl)
modeYesDirection of conversion

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYes
hslNo
modeYes
summaryYes
hslStringYes
rgbStringYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "hex",
      +  "hslString",
      +  "mode",
      +  "rgbString",
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.1/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, which cover the safety profile. The description adds little beyond the source URL and the conversion behavior itself. It does not mention side effects, error handling, or output format, but given the annotations, the baseline expectation is met without 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?

The description is a single, efficient sentence that front-loads the core functionality and includes the source URL. Every word contributes to understanding what the tool does, with no redundant or extraneous content.

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

Completeness5/5

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

For a simple converter, the description plus rich schema and output schema cover all necessary information. It explains both modes, the input parameters are fully documented in the schema, and the output schema exists, so return values do not need description. No critical information is missing for an agent to call this tool correctly.

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 description coverage is 100%, with each parameter (h, s, l, hex, mode) having clear descriptions and constraints (ranges, pattern, enum). The tool description adds no additional parameter-specific meaning, but the schema already provides complete semantics. Per the calibration baseline, a 3 is appropriate.

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 uses specific verbs and resources: 'Convert a hex colour code to hue, saturation and lightness (HSL), or convert HSL values to hex and RGB.' It clearly distinguishes this tool from sibling converters like hopi_hex_to_rgb and hopi_rgb_to_hex by focusing on HSL conversions and including RGB as an output for HSL input. The purpose is unambiguous and distinct.

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 provides clear context: it tells the agent when to use the tool, namely for hex-to-HSL or HSL-to-hex/RGB conversions. It does not explicitly mention alternatives or when-not-to-use conditions, but the two-mode description effectively defines the use cases. This is solid context without explicit exclusions.

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