Skip to main content
Glama

image palette

image_palette
Read-only

Dominant colours of an image (k-means): up to 12 colours with hex, RGB, share and luminance, whether the image is mostly dark, and a readable text colour to put on top. JPEG and PNG. Costs $0.003 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorsNo
image_urlNo
image_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely non-structured context: the k-means method, the 12-colour cap, supported formats (JPEG/PNG), and the per-call cost of $0.003 USDC via x402, which matters for an agent deciding whether to spend. Remaining gaps (image size limits, failure modes) are minor against that.

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?

Three short sentences, zero waste, with the resource and output shape front-loaded and the cost constraint trailing. Every clause earns its place.

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?

With no output schema, the description usefully spells out the return payload, which is a real strength. However, for a tool taking two mutually exclusive image inputs with zero declared required parameters, the omission of which input to supply and in what priority leaves an agent with a real invocation ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% with three parameters, so the description carries the full burden – and it explains none of them. It never clarifies the roles of image_url vs image_base64, or whether one is required given 0 required params, and 'up to 12 colours' only loosely gestures at the colors parameter's range. Formats are the sole parameter-relevant detail.

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 resource and operation – dominant colours of an image via k-means – and enumerates the exact outputs (hex, RGB, share, luminance, dark flag, readable text colour). That is easily separable from visual siblings like image_describe, image_classify, or image_exif. It never states a leading verb (e.g. 'extract'), so it is clear but not maximally crisp.

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

Usage Guidelines2/5

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

Nothing tells the agent when to pick this over image_describe or image_classify, nor when a palette is the wrong tool. The only usage-adjacent statement is the price and supported formats. The agent must infer the use case entirely from the name.

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