Skip to main content
Glama

snap_to_palette

Map an image to a selected color palette using perceptual distance for artistic coherence. Reduce banding with optional Floyd-Steinberg dithering.

Instructions

이미지를 큐레이션 팔레트로 스냅(OKLab 지각 거리, 아트 코히어런스).

Args: src: 입력 이미지 경로. dst: 출력 경로. palette: 팔레트 이름(pico8/sweetie16/db16/edg32). list_palettes 로 확인. dither: Floyd-Steinberg 디더링으로 그라데이션 띠/노이즈 완화.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dstYes
srcYes
ditherNo
paletteYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions 'OKLab perceptual distance' and 'art coherence' as behavioral traits, and explains dithering reduces banding/noise. However, it does not disclose if the tool overwrites files, required permissions, or return behavior, leaving gaps.

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

Conciseness4/5

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

The description is short and structured with a clear header and bullet list of parameters. Every sentence is informative without redundancy. It is front-loaded with the main purpose immediately.

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?

Given 4 parameters, no output schema, and no annotations, the description covers the core purpose and parameter meanings. However, it lacks details on output format, error handling, file overwrite behavior, and how it interacts with the filesystem, which are important for an image processing tool.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It provides clear semantic meaning for all parameters: 'src' as input path, 'dst' as output path, 'palette' with examples and reference to 'list_palettes', and 'dither' as Floyd-Steinberg dithering. This adds significant value beyond the bare schema.

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 clearly states the tool snaps an image to a palette using OKLab perceptual distance and art coherence, which is a specific verb-resource pairing. However, it does not differentiate from sibling palette tools like 'quantize_palette' or 'extract_palette', so it loses one point.

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?

No guidance on when to use this tool versus alternatives like 'quantize_palette' or 'build_palette'. The only mention is to check 'list_palettes' for palette names, which is a prerequisite, not usage context. No when-not-to-use or comparison information.

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