Skip to main content
Glama

linked.is

Convert Color

convert_color
Read-onlyIdempotent

Convert a hex color to RGB, HSL, and HSB, with WCAG contrast against white and black and complementary, analogous, and triadic harmonies. Same math as the color picker. No API token. Picking a color from an image or the screen stays on the website because those need the picture itself.

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": {
      "hex": "<hex>"
    },
    "name": "convert_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
hexYesHex color, with or without #. Three or six digits, for example #3B82F6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description still adds real value beyond them by naming the full output set and clarifying deterministic parity with the website's color picker ("Same math") plus the no-token constraint. It stops short of describing output structure or rounding/format details, which keeps it from a 5.

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?

Front-loaded with the core operation and its outputs, then supporting scope notes. Three sentences with minimal waste, though "No API token" and "Same math as the color picker" are promotional framing rather than invocation-relevant 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?

For a one-parameter, read-only conversion tool with no output schema, the description is complete enough: it enumerates what is returned (RGB/HSL/HSB, WCAG contrast, three harmony sets) and rules out out-of-scope color-picking use. Precise return-field names or value ranges are absent, but that is a minor gap given the tool's simplicity.

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% and the single `hex` parameter is fully documented there, including the optional # and 3/6-digit forms. The description adds no additional parameter semantics beyond the schema, so the baseline 3 applies.

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?

States a specific verb ("Convert") and a specific resource ("a hex color") and enumerates the exact outputs: RGB, HSL, HSB, WCAG contrast vs white/black, and complementary/analogous/triadic harmonies. No sibling tool in the list is color-related, so no differentiation burden exists, and an agent can tell immediately what it will get back.

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?

Gives clear context for when this applies (hex value in, full color breakdown out) and explicitly scopes out related-seeming tasks: picking from an image or the screen "stays on the website because those need the picture itself." It doesn't enumerate alternatives, but no relevant sibling exists, so the routing guidance is adequate.

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.