Skip to main content
Glama

pixelize_image

Convert any PNG image into authentic retro pixel art using downsampling, palette quantization, and dithering. Customize scale, palette, and sampling filters.

Instructions

Imports an external image file (PNG) and converts it to authentic 2D retro pixel art with downsampling, palette quantization, and dithering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNoPixel art integer scaling factor when saving to output path (default: 4)
ditherNoWhether to apply Bayer ordered dithering to simulate shading gradients (default: true)
paletteNoRetro palette to clamp colors to (default: 'db32')
samplingNoDownsampling filter: 'average' (best for high-res), 'nearest', or 'bilinear' (default: 'average')
canvas_idNoOptional canvas ID to register in memory
file_pathYesAbsolute or relative file path to the source image (e.g. 'assets/hero.png' or 'textures/rock.png')
target_widthNoTarget pixel art width (default: 32)
dither_spreadNoDither intensity spread (default: 0.2)
target_heightNoTarget pixel art height (default: 32)
export_output_pathNoOptional file path to automatically export the resulting pixel art PNG to disk
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It discloses the core transformation stages ('downsampling, palette quantization, and dithering') but does not state side effects, whether the source file is modified, how the result is returned or stored, or what happens when canvas_id is omitted. It is moderately transparent but not fully.

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?

A single sentence that front-loads the core purpose and then names the processing pipeline with no filler. Every word contributes meaning, and the structure is ideal for quick agent comprehension.

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 tool with 10 parameters and no output schema, the description is complete enough for high-level selection but not for fully informed invocation. It does not clarify how the resulting pixel art is delivered (via canvas_id? return value? export path?) or mention defaults like 32x32 target and db32 palette, which an agent would need to predict behavior without reading every parameter description.

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 baseline is 3. The description adds some conceptual context by mapping 'downsampling', 'palette quantization', and 'dithering' to the sampling, palette, and dither parameters. Still, it does not add details about defaults or interactions beyond what the schema already provides.

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 states a clear specific verb ('Imports', 'converts') and a concrete resource ('external image file (PNG)' → 'authentic 2D retro pixel art'). It also names the conversion pipeline (downsampling, palette quantization, dithering), which distinguishes it from procedural generator and filter siblings like generate_texture and apply_dither.

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

Usage Guidelines3/5

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

The description implies when to use the tool: when an external image needs to be converted to pixel art. However, it does not explicitly compare against siblings such as generate_texture for procedural textures or apply_dither for post-processing. Usage context is inferable but not explicit.

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/al3duc/text2d-mcp'

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