Skip to main content
Glama

Image Color Picker API - dominant HEX/RGB/HSL palette & exact pixel sampler

image_color_picker
Read-onlyIdempotent

Extract the dominant colour palette (5, 8 or 12 colours) with HEX, RGB and HSL values plus CSS custom properties from any image, and optionally sample the exact colour (or 5x5 average) at a given (x%, y%) coordinate. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/image-color-picker.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "x": 50,
      "y": 50,
      "colors": "5",
      "fileName": "sample.png",
      "average5x5": true,
      "fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
    },
    "name": "image_color_picker"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoOptional horizontal sample point (% from left, 0-100)
yNoOptional vertical sample point (% from top, 0-100)
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
colorsNoNumber of dominant colours: 5, 8 or 128
fileNameNoFile name with extension, e.g. report.pdf
average5x5NoAverage a 5x5 pixel area around (x, y)
fileContentNoThe file as base64 (a data: URI is fine; 20 MB total decoded limit per call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fileContent / description
      Previous value: -"The file as base64 (a data: URI is fine)"New value: +"The file as base64 (a data: URI is fine; 20 MB total decoded limit per call)"
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, openWorld), the description discloses genuinely useful operational facts: processing happens server-side, files are deleted immediately and nothing is stored, the free tier is 5 calls/day per IP, and paid access requires an X-API-Key header or x402 payment. That covers privacy, rate limits and auth in a way annotations cannot. It stops short of describing error behavior or what a partial/failed sample returns.

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?

The core capability is front-loaded in the first sentence, with access/pricing in a short second sentence. It is dense but nearly every clause carries information; the pricing URLs and per-call cost add length that is useful only to a subset of callers.

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?

With no output schema, the description does the necessary work of naming the return shape (HEX/RGB/HSL values plus CSS custom properties) and the sampling behavior, and it covers storage and billing constraints. Minor gaps remain: it does not mention the multi-file batch mode (up to 60 files / 20 MB) that the schema exposes.

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 all seven parameters, including the colours enum, the x/y percentage semantics, average5x5 and the 60-file batch array. The description only restates the palette sizes and sampling mode and adds no syntax or format detail beyond that, so it earns the baseline rather than more.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Extract the dominant colour palette ... from any image') and enumerates the return values (HEX, RGB, HSL, CSS custom properties) plus the optional pixel-sampling mode. It is clear about scope, but it never distinguishes itself from the sibling 'color_palette_from_image', which sounds like the same operation.

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?

Implicit usage is conveyed by describing the two modes (palette extraction and point sampling at x%/y% with optional 5x5 averaging), and the pricing/auth note hints at access conditions. However, there is no explicit when-to-use guidance, no exclusion of cases where another tool (e.g. the similarly named palette sibling) should be chosen instead, and no stated prerequisites such as supported image formats.

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