Skip to main content
Glama

extract_palette

Extract a representative color palette from an image as hex values. Optionally save a swatch PNG to unify multiple assets.

Instructions

이미지에서 대표 팔레트(헥스 리스트)를 추출 + 옵션 스와치 PNG 저장.

추출한 팔레트를 snap_to_palette 의 기준으로 삼아 여러 에셋을 통일할 수 있다.

Args: src: 입력 이미지 경로. colors: 추출할 색 수. swatch: 지정 시 팔레트 스와치 PNG 저장 경로.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
srcYes
colorsNo
swatchNo
Behavior2/5

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

No annotations are provided, so the description carries full burden. It explains the main action and optional swatch save, but does not describe the return value (likely a hex list), error handling, supported image formats, or any side effects beyond optional file writing. The absence of output schema exacerbates this gap.

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 concise, with a clear first-line summary, a short usage context, and a bulleted args list. Every sentence serves a purpose without redundancy.

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?

For a simple extraction tool with 3 parameters and no output schema, the description covers basic functionality and parameter meaning. However, it is missing explicit details about the return value, input format requirements, and error states. It is adequate but not comprehensive.

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?

With 0% schema description coverage, the description compensates partially by explaining each parameter: src (input image path), colors (number of colors), and swatch (path for PNG save). However, it omits details like valid ranges for colors, default behavior (16 colors), and doesn't clarify that swatch is optional despite default null. Still, it adds meaning beyond parameter names.

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?

Description clearly states that the tool extracts a representative palette (hex list) from an image and optionally saves a swatch PNG. It distinguishes from siblings like build_palette or export_palette by specifying the image source and linking to snap_to_palette.

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 explains that the extracted palette can be used as a basis for snap_to_palette to unify assets, providing a clear usage context. However, it does not explicitly mention when not to use this tool or compare it to alternatives like build_palette or quantize_palette.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mindsurf0176-ui/pixelforge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server