Skip to main content
Glama

compare_frames

Compare two frames pixel by pixel to get changed pixel count, percentage, and bounding box. Use while animating to verify frame differences.

Instructions

Compare two frames and report how much they differ.

Flattens the sprite (non-destructively) and diffs the two frames 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

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frame_aYes
frame_bYes
filenameYes
Behavior4/5

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

No annotations provided, so description carries full burden. It states the operation is non-destructive and flattens the sprite, which is a behavioral insight. No contradictions. Could mention performance aspects, but still clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very concise: a one-line summary, a context sentence, then structured Args and Returns. Front-loaded with purpose. Every sentence earns its place.

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?

For a simple comparison tool with no output schema, the description covers input parameters and return format comprehensively. The usage context and behavioral notes make it complete.

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?

With 0% schema description coverage, the description adds significant value by explaining frame_a and frame_b indices starting at 1, and the purpose of filename. The Args section in the docstring provides meaning beyond the schema titles.

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?

The description clearly states the verb 'compare' and resource 'two frames', and explains the non-destructive flattening and pixel-by-pixel diffing. It distinguishes itself from sibling tools like get_pixel_color or get_sprite_info.

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?

Explicitly provides usage context: 'Use while animating to confirm...' This gives clear when-to-use guidance. No explicit when-not-to-use or alternatives, but the context is sufficient for selection among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NosytLabs/aseprite-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server