Skip to main content
Glama

extract_dominant_color_palette

Extract a five-color aesthetic palette from image pixel data using k-means clustering. Generate dominant color schemes for design and analysis without heavy native dependencies.

Instructions

Computes k-means dominant 5-color aesthetic palettes from image pixel data without heavy native dependencies. (0.015 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It usefully discloses the algorithm (k-means), fixed output count (5), dependency footprint, and the 0.015 USDC cost, but it does not describe the return format, failure modes, or any side effects.

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?

The description is a single focused sentence that front-loads the core function and adds the cost detail parenthetically. There is no redundant or extraneous wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should clarify what the result looks like, but it only says 'palettes' without format details. The generic payload schema is also ambiguous, and the description does not specify how image data should be encoded or passed.

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?

The schema has 100% parameter description coverage, so the baseline is 3. The description adds meaningful domain context by indicating image pixel data is the payload subject, but it still does not specify the exact payload JSON structure needed to invoke the tool successfully.

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?

The description states a specific verb ('Computes'), a specific resource ('dominant 5-color aesthetic palettes'), and the input domain ('image pixel data'). It also distinguishes itself from sibling image or color tools by mentioning the k-means approach and light dependency footprint.

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 implies this should be used for extracting dominant color palettes from images, but it does not explicitly state when to prefer this tool over alternatives or when not to use it. There is no mention of alternative tools or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools