Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

compare_frames

Compare two animation frames pixel by pixel to measure changed pixel count, percent changed, and the bounding box of differences. Verify a frame actually changed or stayed within limits while animating.

Instructions

Compare two frames and report how much they differ.

Renders both frames as you see them (visible layers only) and diffs them pixel by pixel. Use while animating to confirm a frame actually changed, or that it did not change too much.

Args: filename: Aseprite file to read frame_a: First frame index, starting at 1 frame_b: Second frame index, starting at 1 layer_name: Compare only this layer (or group), e.g. the character without the effects around it; "" compares all visible layers region: Compare only "x,y,w,h" (sprite pixels), e.g. the legs, to prove that part did or did not move; "" compares the whole frame

Returns: JSON with changed pixel count, total pixels, percent changed, and the bounding box of the changed region.

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>",
      "frame_a": "<frame_a>",
      "frame_b": "<frame_b>"
    },
    "name": "compare_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNo
frame_aYes
frame_bYes
filenameYes
layer_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden, and it does well: it states that frames are rendered as seen (visible layers only), so hidden layers are excluded, and that the diff is pixel by pixel. It also describes the return payload (changed pixel count, total, percent, changed bounding box). It never explicitly states that the operation is read-only and does not modify the file, which is the main 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 definition is front-loaded with purpose and usage, then organized into Args and Returns blocks, so it scans well. The inline examples for layer_name and region earn their space by clarifying format. It is slightly longer than strictly necessary but has no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, yet the description covers purpose, usage context, all five parameters including their empty-string conventions, and the shape of the returned JSON. An agent has everything needed to call this correctly without opening anything else.

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 description must supply all parameter meaning, and it does: filename, 1-indexed frame_a/frame_b, layer_name with the empty-string meaning 'all visible layers', and region in 'x,y,w,h' sprite-pixel form with empty string meaning whole frame. Format and default semantics are spelled out for every parameter, including concrete examples.

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 opens with a specific verb and resource: 'Compare two frames and report how much they differ,' and adds that the comparison is a pixel-by-pixel diff of rendered (visible-layer) output. That is far more specific than the name alone. It does not explicitly contrast with the sibling 'compare_versions', so an agent must infer the frame-vs-version distinction, which keeps it just below 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?

It gives a clear usage context: 'Use while animating to confirm a frame actually changed, or that it did not change too much.' That tells the agent when the tool fits. It offers no explicit when-not conditions or named alternative, so it stops short of full routing guidance.

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