Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Arteon Tools. If you published it, claim ownership there.

Convert color

convert_color
Read-onlyIdempotent

Convert a color between notations: HEX, RGB, HSL, HSV, HWB, CMYK, CIE Lab and LCH, OKLab, OKLCH, Display P3, YCbCr, Android, Flutter, SwiftUI, UIKit, decimal and more, plus the nearest CSS color name. Accepts most written forms, for example #3b82f6, rgb(59 130 246), 59, 130, 246, hsl(217 91% 60%), cmyk(76%, 47%, 0%, 4%), oklch(0.62 0.19 260), 0xFF3B82F6 or a CSS name. Colors outside sRGB keep exact values in wide-gamut notations and get the nearest color in sRGB ones.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "color": "<color>"
    },
    "name": "convert_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesThe color to convert, for example #3b82f6.
localeNoLanguage of the returned tool page link and of the text rules, one of: pl, en, de, es, fr, pt, it, cs, ar, id, tr, el, uk, ro, th, ja, vi, hi. Defaults to en.
notationsNoNotations to return. Default: hex, rgb, hsl, hsv, hwb, cmyk, lab, lch, oklch and name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds genuinely useful behavior beyond that: colors outside sRGB retain exact values in wide-gamut notations but are clamped to the nearest sRGB color in sRGB notations, and it notes the implicit inclusion of the nearest CSS name. It does not describe the response shape, but that is the main remaining gap.

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?

Two sentences, front-loaded with the verb and resource, then supporting detail on notations and accepted syntax. The long notation list is dense but serves selection, and the gamut caveat is placed last where it functions as a caveat rather than burying the purpose.

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?

This is a low-complexity read-only tool with a fully documented three-parameter schema and no output schema, and the description covers input formats, defaults, and gamut behavior. The notable remaining gap is that nothing explains what the result contains beyond the notations themselves (e.g., how multiple notations are returned or whether the tool page link is included), though the tool's simplicity limits how much this matters.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning for the `color` parameter by showing many accepted written forms ('59, 130, 246', '0xFF3B82F6', 'oklch(0.62 0.19 260)', CSS names), resolving ambiguity the terse schema example does not. It says nothing extra about `notations` or `locale`, but those are fully documented in the 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?

Specific verb plus resource: 'Convert a color between notations', with an enumerated set of formats (HEX, RGB, HSL, OKLCH, SwiftUI, YCbCr, etc.). This clearly separates it from siblings like convert_units or check_contrast, which do different jobs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes context by listing the accepted input forms, which implicitly tells an agent this is the tool for parsing/normalizing a color string. However, it never states when to prefer it over alternatives or when it is not appropriate (e.g., contrast or readability checking), so routing must be inferred from the name and format list.

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