Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

cleanup_lines

Removes L-shaped doubled pixels from 1 px lines to make them pixel-perfect, preserving real square corners and avoiding dents in outlines.

Instructions

Make 1 px lines pixel-perfect: remove L-shaped 'doubles'.

A line drawn with a mouse or from shapes often has a pixel at each step where two would touch only at a corner; that makes the line look thick and jagged. This finds those pixels (keeping real square corners of boxes and frames) and removes the one that evens out the step lengths. A removed outline pixel takes the colour beside it (fill inside, empty outside), so the shape is not dented.

Args: filename: Aseprite file layer_name: Image layer ("" = topmost, "*" = all image layers; a group = its layers) frames: "" or "all" = every frame, or "3", "1-4", "1,3,6-8" colors: Only clean lines of these hex colours (default: the colours used as 1 px lines - outlines and detail lines; fills are never touched) dry_run: Report what would change 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": "cleanup_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorsNo
framesNo
dry_runNo
filenameYes
layer_nameNo

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 well: it explains the pixel-removal rule, the preservation of real corners, the colour-inheritance behaviour that prevents denting ('fill inside, empty outside'), and that dry_run reports without writing, implying real runs persist. It stops short of saying the file is modified in place, whether an undo/history entry is created, or what a report contains.

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 outcome, then a short paragraph justifying the technique, then a structured Args block that is easy to scan. The algorithm paragraph is longer than strictly necessary but explains non-obvious behaviour rather than padding; no sentence is pure filler.

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 five-parameter destructive image-editing tool with no annotations and no output schema, the definition supplies the mechanism, the safety valve (dry_run), the scoping options, and the preservation guarantees. The main remaining gap is the return/report format and confirmation of in-place write behaviour, which an agent would otherwise have to discover by calling it.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and the Args block documents every one of the five parameters: layer_name sentinel values ('' topmost, '*' all image layers, group means its layers), the frames syntax ('all', '3', '1-4', '1,3,6-8'), the colours default semantics, and dry_run. Only filename is left as a bare 'Aseprite file', but its requirement is obvious from the schema.

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?

States a specific verb and resource up front ('Make 1 px lines pixel-perfect: remove L-shaped doubles') and explains the exact defect it targets, so an agent can tell what class of operation this is. It does not name or contrast itself with any sibling tool, so it falls short of a 5.

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?

The description defines the situation that warrants the tool: lines drawn with a mouse or from shapes that produce corner-touching pixels. It also implicitly excludes fills ('fills are never touched') and box/frame corners ('keeping real square corners'). It never states when NOT to use it or points to an alternative, so it is clear context without explicit routing.

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