Skip to main content
Glama

RGB to hex converter

hopi_rgb_to_hex
Read-onlyIdempotent

Convert red, green and blue values (each a whole number from 0 to 255) to an uppercase hex colour code. Source: https://hopi.co.uk/rgb-to-hex/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bYesBlue, 0 to 255
gYesGreen, 0 to 255
rYesRed, 0 to 255

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexNo
summaryYes
rgbStringNo
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: +[
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/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 safety profile is fully covered. The description adds the specific output format (uppercase hex) and input range (0-255), which are behavioral details beyond the schema. It doesn't mention edge cases like rounding or invalid input handling, but for a pure conversion tool this is sufficient.

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 sentence that states the input, output, and format. It is front-loaded with the action and resource, and the source URL is a minor addition. Every word 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 conversion tool with full schema coverage, an output schema, and safety annotations, the description is complete. It could mention that the output is a string with a '#' prefix, but the term 'hex colour code' implies this. The source URL is a nice touch for verification.

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%, so the schema already documents each parameter (r, g, b) with ranges. The description adds the overall context (whole numbers 0-255) but doesn't add per-parameter meaning beyond what the schema provides. Baseline 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 clearly states the tool converts red, green, and blue values (0-255) to an uppercase hex colour code. It uses a specific verb ('convert') and resource ('RGB values to hex colour code'), and the title and description align perfectly. It is distinct from siblings like hopi_hex_to_rgb and hopi_hsl_converter because it explicitly names the input format and output format.

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 implies when to use this tool: when you have RGB values and need a hex code. It doesn't explicitly state when not to use it or name alternatives like hopi_hex_to_rgb, but the context is clear enough for an agent to select it correctly. The source URL adds credibility but not usage guidance.

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