Skip to main content
Glama

convert_color

Translate color values between hex and RGB formats for CSS and design systems.

Instructions

Convert a color value between hex and RGB formats.

Use this when working with CSS colors, design systems, or anywhere you need
to translate between hex (#FF0000) and RGB (rgb(255, 0, 0)) representations.

Parameters:
    value       — The color value to convert (required).
                  Hex format e.g.: "FF0000" or "#FF0000".
                  RGB format e.g.: "rgb(255,0,0)" or "255,0,0".
    from_format — Source format: "hex" or "rgb" (default: "hex").
    to_format   — Target format: "hex" or "rgb" (default: "rgb").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
from_formatNohex
to_formatNorgb

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It describes parameter formats and defaults but does not disclose error handling, validation, output format, or any side effects. This is insufficient for a tool with no annotations.

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?

Highly concise: two sentences for purpose/usage, then a clear parameter list. No redundancy or fluff. Front-loads key information.

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?

Covers purpose, usage, and parameters in sufficient depth. An output schema exists (not shown), so the lack of return value explanation is acceptable. However, could be improved by mentioning output format or error behavior.

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 description coverage is 0%, but the description compensates well by detailing each parameter: accepted formats for 'value' (both hex and RGB), defaults for 'from_format' and 'to_format'. This adds significant meaning beyond the bare schema.

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?

Clearly states 'Convert a color value between hex and RGB formats.' This specific verb+resource combination distinguishes it from sibling color tools like hex_to_hsl or hsl_to_rgb. Examples of hex (#FF0000) and RGB (rgb(255, 0, 0)) further clarify.

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?

Explicitly provides usage context: 'Use this when working with CSS colors, design systems, or anywhere you need to translate between hex and RGB representations.' However, it does not mention when not to use or provide alternatives among the many sibling 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