Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

polish_sprite

Runs a one-shot cleanup pass on sprites: merges near-duplicate colors, removes line doubles and stray pixels, then re-scores. Use it to polish artwork safely, since checkpoints allow undo.

Instructions

One-shot cleanup pass: checkpoint, merge near-duplicate colours, remove doubles from lines, remove stray pixels, then re-score.

Safe to run often; restore_checkpoint undoes it. Returns the critique score before and after and what each step changed.

Args: filename: Aseprite file layer_name: "*" = all image layers (default), or one layer frames: "" = every frame protect: Deliberate single pixels to keep, "x,y;x,y" merge_threshold: OKLab distance for merging colours (0.035 = the critique's near-duplicate limit) clean_lines, clean_strays, merge_colors: Steps to run checkpoint: Save a checkpoint first

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>"
    },
    "name": "polish_sprite"
  }
}

Input Schema

NameRequiredDescriptionDefault
framesNo
protectNo
filenameYes
checkpointNo
layer_nameNo*
clean_linesNo
clean_straysNo
merge_colorsNo
merge_thresholdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full load and does substantially well: it discloses idempotent-style repeatability, reversibility via checkpoint + restore_checkpoint, and what is returned (critique score before and after, plus per-step changes). It stops short of saying whether the file is written to disk or how partial failures are reported.

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?

Front-loaded with the pass description, then the safety/undo note, then return values, then a compact Args block – a sensible order with no filler sentences. Minor redundancy in that checkpoint is described both as a step in the pass and again as an argument.

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 9-parameter mutation tool with no annotations and no output schema, the definition covers reversibility, return contents, and every argument's meaning, which is close to sufficient. Remaining gaps are persistence behavior and frames-range syntax, which an agent would need before calling it on a real file.

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

Parameters5/5

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

Schema description coverage is 0%, so the Args block is doing essential work: it defines layer_name "*" as all image layers, frames "" as every frame, the "x,y;x,y" syntax for protect, and merge_threshold as an OKLab distance tied to the critique's near-duplicate limit. That is real meaning beyond the bare titles and defaults; only the non-empty frames syntax is left unstated.

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?

Names a specific operation ("one-shot cleanup pass") and enumerates the exact steps it performs: checkpoint, merge near-duplicate colours, remove doubles, remove stray pixels, re-score. An agent can distinguish this from narrower siblings like cleanup_lines or lint_sprite without opening the schema, because the composite scope is stated explicitly.

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?

"Safe to run often; restore_checkpoint undoes it" gives a runtime-safety cue and names the undo path, which is useful. However, it never says when to prefer this over cleanup_lines, lint_sprite, or critique_sprite, nor what state the sprite should be in beforehand, so the agent must infer the selection criteria.

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