Skip to main content
Glama

extract_palette

Read-onlyIdempotent

Extract the dominant color palette (hex codes) from a PNG image URL. For JPEG/other formats use the web tool at https://www.epicpxls.com/tools/color-palette-extractor

Input Schema

NameRequiredDescriptionDefault
countNoNumber of colors to return (default 6, min 2, max 12)
image_urlYesHTTPS URL of a PNG image (max 5 MB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The format constraint the description adds (PNG only) is largely duplicated by the schema's 'HTTPS URL of a PNG image' description, so it contributes little new behavioral context beyond noting the fallback path.

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?

Two sentences, no filler, with the core capability front-loaded and the format restriction/fallback placed after it. Every clause earns its place.

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?

There is no output schema, and the description does state the return form (hex codes), which covers the main return-value question. Minor gaps remain, such as ordering/sorting of colors or error behavior on an oversized or unreachable image, but the tool is simple enough that this is close to complete.

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%: count documents its range and default, and image_url documents format and size limit. The description adds no parameter-level detail beyond that, 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 (extract), resource (dominant color palette), input type (PNG image URL), and output format (hex codes). No sibling in the list (checkout links, fonts, assets, items) overlaps with palette extraction, so there is no confusion to resolve.

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

Usage Guidelines5/5

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

Provides an explicit when-not condition plus an alternative: 'For JPEG/other formats use the web tool at ...'. An agent knows exactly which input this tool accepts and where to route unsupported inputs.

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