Skip to main content
Glama

Rd Quantize

rd_quantize

Reduce PNG colors to an indexed GBA-friendly palette. Returns the hex palette and saves a quantized PNG with chosen color count via median-cut quantization.

Instructions

Reduce a PNG to an indexed palette (GBA-friendly) and return the hex palette.

Pillow median-cut quantization; output is a P-mode PNG. Default out_path sits next to the input with a _q{colors} suffix.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorsNo
out_pathNo
image_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses the quantization algorithm (Pillow median-cut), output mode (P-mode PNG), the side effect of writing a file, default path naming, and the return of a hex palette. It does not mention overwrite or error behavior, but the core traits are well covered.

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?

Three sentences with no filler. The main action and return value are front-loaded, and each subsequent sentence adds distinct technical or default-behavior information.

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?

For a 3-parameter tool with an output schema and no annotations, the description covers the core operation, algorithm, output format, default output location, and return value. It could add overwrite/error semantics or GBA palette constraints, but an agent can invoke the tool correctly from this text plus the schema.

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 0%, so the description must compensate for parameter meaning. It adds useful context for out_path (default next to input with _q{colors} suffix) and colors (affects filename suffix), but it never names image_path or explains colors' valid range/effect beyond the filename. Compensation is partial.

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 opens with a specific verb and resource: 'Reduce a PNG to an indexed palette (GBA-friendly) and return the hex palette.' It also names the algorithm and output mode, making the action clear. However, it does not explicitly distinguish this from sibling tools like rd_palettize or ase_quantize_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 Guidelines2/5

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

There is no guidance about when to use this tool versus alternatives such as rd_palettize or ase_quantize_to_palette. The 'GBA-friendly' phrasing implies a use case, but there are no explicit conditions, exclusions, or prerequisites.

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