Skip to main content
Glama

extract_palette

Read-onlyIdempotent

Extract dominant color palette from an image. Returns hex/RGB/HSL colors with percentages, CSS names, and complementary colors. Great for design systems, mood boards, and color matching. FREE. (FREE)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesBase64-encoded PNG/JPEG image
formatNoColor format in outputhex
num_colorsNoNumber of colors to extract (3-12)

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 readOnlyHint, idempotentHint, and non-destructive behavior. The description adds valuable behavioral details beyond that by specifying the output: 'hex/RGB/HSL colors with percentages, CSS names, and complementary colors.' It also mentions 'FREE' as a pricing/safety signal. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact overall, but 'FREE. (FREE)' is redundant and wastes space, violating the principle that every sentence should earn its place. The rest is front-loaded with the core purpose and output details, but the repetition lowers the score.

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 appropriately explains the return values ('hex/RGB/HSL colors with percentages, CSS names, and complementary colors'). It covers the core functionality and use cases. Though it doesn't specify the exact JSON structure, the level of detail is sufficient for a moderately complex tool with good annotations.

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 fully documents all three parameters (image, format, num_colors). The description mentions hex/RGB/HSL which aligns with the format enum, but adds no new meaning beyond the schema. Baseline of 3 is appropriate since the schema does the heavy lifting.

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 clearly states the tool's function with a specific verb and resource: 'Extract dominant color palette from an image.' This distinguishes it from sibling tools like convert_color_profile or resize_image, making the purpose unmistakable.

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?

The description gives clear application contexts: 'Great for design systems, mood boards, and color matching.' It implies when to use the tool, though it does not explicitly state when not to use it or mention alternatives. This is solid guidance but lacks explicit exclusion criteria.

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.