Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

remove_stray_pixels

Clean noise from Aseprite layers and frames by recoloring stray pixels to their most common neighboring color or erasing lone pixels, while protecting deliberate single-pixel details.

Instructions

Clean noise: pixels whose colour none of their 8 neighbours share.

Each stray pixel takes the most common colour around it; a lone pixel floating in empty space is erased (remove_lone=False keeps those, e.g. stars or sparkles). List deliberate single pixels - eye glints, a sword's shine - in protect.

Args: filename: Aseprite file layer_name: Image layer ("" = topmost, "*" = all image layers) frames: "" or "all" = every frame, or "3", "1-4", "1,3,6-8" protect: Pixels to keep, "x,y;x,y" remove_lone: Also erase single pixels with nothing around them dry_run: Report only

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

Input Schema

NameRequiredDescriptionDefault
framesNo
dry_runNo
protectNo
filenameYes
layer_nameNo
remove_loneNo

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?

With no annotations, the description carries the full burden and largely meets it: it explains the algorithm (each stray pixel takes the most common surrounding colour), the edge case (lone pixels erased unless remove_lone=False), and what dry_run does ('Report only'). It does not state whether the file is saved to disk or what the report contains, which is the remaining gap.

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 rule is front-loaded in the first line, with the algorithm and edge case following and parameters grouped into a compact Args block. The Args lines are terse and informative rather than restating the schema titles wastefully.

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 six-parameter mutation tool with no annotations and no output schema, the definition covers behaviour, edge cases, and every parameter format. What is missing is the post-execution contract -- whether changes are written to the file and what dry_run reports -- which keeps it from being fully self-sufficient.

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 coverage is 0%, so the description must supply all parameter meaning, and it does: layer_name documents '' = topmost and '*' = all image layers, frames documents ''/'all' and the '1,3,6-8' syntax, protect documents the 'x,y;x,y' format, and remove_lone/dry_run are explained. This fully compensates for the empty schema descriptions.

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 states a specific operation on a specific resource: removing pixels whose colour none of their 8 neighbours share, i.e. noise cleanup. That is far more precise than the bare name. It does not name or contrast with a sibling such as cleanup_lines, so it stops short of 5.

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?

Usage context is implied by examples -- 'List deliberate single pixels - eye glints, a sword's shine - in `protect`' and 'remove_lone=False keeps those, e.g. stars or sparkles' -- which tells the agent when to use specific options. There is no explicit when-to-use/when-not-to-use statement versus alternative cleanup tools.

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