Skip to main content
Glama

Fix fake pixel art

fix_pixel_art
Read-only

Turn fake pixel art (an AI image or an upscaled screenshot where each "pixel" is a blurry block of slightly different colours) into real pixel art: finds the pixel grid, rebuilds it at 1 pixel per cell with one clean colour per cell, and can limit the colours or map them to a palette. Removes a fake checkerboard background first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fix_pixel_art"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellNoSize of one art pixel in the source, if you know it. Found automatically when left out.
nameNoShort name for the output files.
scaleNoAlso save a copy scaled up this many times with sharp pixels.
colorsNoReduce to this many colours.
outlineNoAdd a 1 pixel dark outline around the sprite.
paletteNoMap to a palette: pico-8, sweetie-16, endesga-32, gameboy, nes-like, or hex codes like "#1a1c2c #b13e53 ...".
image_urlNoPublic http(s) URL of a PNG image, up to about 128×128 pixels.
image_base64NoThe PNG file as base64 (a data: URL also works). Use instead of image_url.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is partly covered. The description adds real behavioural detail beyond that: it strips a fake checkerboard background first, auto-detects the grid, and produces output files (implied by the 'name' parameter), but it never says what is returned or where files land. The file-writing behaviour sits slightly at odds with a strict reading of readOnlyHint, though not enough to call a contradiction.

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 core transformation is front-loaded in the first clause and the parenthetical definition of 'fake pixel art' is genuinely useful for recognition. The single long sentence is dense but every clause contributes; only light trimming would be possible.

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?

With eight parameters, no output schema, and file-producing behaviour, the definition should say something about the result (returned URLs, file names, image dimensions). It covers the transformation and background removal well but leaves the agent guessing about what comes back, which is the largest completeness gap.

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 all eight parameters are already documented in the schema, and the baseline is 3. The description only restates the colours/palette capability at a high level and adds no syntax or interaction detail (e.g. how 'colors' and 'palette' combine) beyond what the schema provides.

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 gives a precise verb+resource ('Turn fake pixel art ... into real pixel art') and even defines the input condition (an AI image or upscaled screenshot with blurry blocks of slightly different colours), so an agent can recognise the target case. It does not explicitly differentiate itself from siblings such as apply_palette or palette, even though it mentions colour limiting and palette mapping that overlap with those tools.

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?

It clearly states the situation that calls for this tool: source images where each 'pixel' is a blurry block rather than a clean cell. There is no explicit when-not guidance and no named alternative for cases like applying a palette to already-clean pixel art, which is the main remaining gap.

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