Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

merge_similar_colors

Merge perceptually similar colors across layers and frames to tighten the palette and keep every animation frame consistent. Optionally cap total colors and snap semi-transparent pixels.

Instructions

Merge colours that are too close to tell apart, across layers and frames.

Colours closer than threshold (OKLab distance: 0.02 is barely visible, 0.04 is a subtle step, 0.08 a clear one) are merged into the most used of them, so the palette is tight and every frame uses the same colours. With max_colors > 0 it keeps merging the closest pair until at most that many colours remain. Semi-transparent pixels are snapped to fully opaque or empty when snap_alpha.

Args: filename: Aseprite file threshold: Merge colours closer than this (default 0.04) layer_name: "*" = all image layers (default), or one layer frames: "" = every frame max_colors: Optional upper limit on the number of colours snap_alpha: Make alpha 0 or 255 (threshold 128) dry_run: Report the merges without writing

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": "merge_similar_colors"
  }
}

Input Schema

NameRequiredDescriptionDefault
framesNo
dry_runNo
filenameYes
thresholdNo
layer_nameNo*
max_colorsNo
snap_alphaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does most of it: it discloses the merge target (the most used of the pair), iteration behaviour under max_colors, the alpha-snapping rule with its 128 threshold, and that dry_run reports merges without writing. What is missing is what happens on write (in-place overwrite, backup, palette entries) and what the dry_run report looks like.

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 core action on the first line, then the semantics of threshold, then the args list; the scale anchors are the highest-value content and appear early. The prose is dense but essentially every sentence adds information; the mild cost is that the Args block repeats parameter names already in the schema.

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 7-parameter mutating tool with no annotations and no output schema, the description covers the destructive surface (dry_run), the perceptual parameter, and all defaults in scope semantics. It is nearly complete; the remaining gap is the write path (in-place file modification) and the shape of the dry_run report.

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%, and the Args block compensates with meaning beyond types: threshold is given an OKLab scale with concrete anchors (0.02 barely visible, 0.04 subtle, 0.08 clear), layer_name "*" means all image layers, frames "" means every frame, max_colors 0 means unbounded, snap_alpha forces alpha to 0 or 255. Only filename is thin ("Aseprite file").

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?

Specific verb+resource: merges colours that are perceptually indistinguishable, across layers and frames, into the most-used one. The operation and its scope are unambiguous. It does not name or contrast with nearby palette tools such as remap_colors_in_cel_range or analyze_palette, so sibling differentiation is left to inference.

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?

Implied usage is clear (tighten the palette, unify colours across frames), and it explains that max_colors>0 keeps merging until the limit is reached. It never says when to choose this over remap_colors_in_cel_range or analyze_palette, nor any preconditions; with no explicit when/when-not guidance this sits at implied usage.

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