Skip to main content
Glama

Clean sprite sheet

sprite_sheet
Read-only

Clean up an AI-made sprite sheet or a set of animation frames: removes the background, finds each frame, makes the character the same height in every frame, lines up the feet and the body, and packs everything into an even grid. Returns the sheet PNG and frame data (cell size, columns, rows, and a TexturePacker-style JSON).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sprite_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
padNo
cellNoSquare cell size in pixels. Default: fits the biggest frame.
gridNoIf the frames sit in a regular grid, give it as "COLSxROWS", e.g. "4x2". Otherwise each frame is found on its own.
nameNoShort name for the output files.
anchorNofeet
columnsNoColumns in the output sheet. Default: all frames in one row.
image_urlNoPublic http(s) URL of a PNG image, up to about 128×128 pixels.
pixel_artNoScale with sharp pixels instead of smooth.
same_heightNoScale frames so the body is the same height in each.
image_base64NoThe PNG file as base64 (a data: URL also works). Use instead of image_url.
match_colorsNoPull the colours of every frame toward the first one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true; the description adds real substance on top by disclosing the multi-step transformation pipeline and exactly what the tool returns (sheet PNG, cell size, columns, rows, TexturePacker JSON). It also hints at the network requirement via 'Public http(s) URL.' It does not clarify whether results are written anywhere persistent or how the two image input modes interact, leaving a small behavioral 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?

Two sentences: the first front-loads the purpose and the operation list, the second front-loads the return value. Every clause maps to a real processing step, so nothing is filler. The operation list is long within one sentence, but it is the value-add, so this is close to optimal.

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 an 11-parameter tool with no output schema, the description carries the return-value burden well by naming the PNG and the frame metadata. With zero required parameters, the biggest remaining gap is that it never states that one of image_url / image_base64 must be supplied, which an agent could get wrong. Otherwise the pipeline description is complete enough to call the tool correctly.

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

Parameters3/5

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

Schema description coverage is 82%, so the schema already documents almost every parameter, giving a baseline of 3. The description adds indirect meaning by describing the grid packing and equal-height alignment behaviors that correspond to the cell, columns, and same_height parameters, but it does not restate or clarify defaults, ranges, or edge cases. It does not meaningfully exceed what the schema provides.

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 uses a specific verb plus resource ('Clean up an AI-made sprite sheet or a set of animation frames') and then enumerates the concrete operations (background removal, frame detection, height normalization, alignment, grid packing) plus the return artifacts. That is far more informative than the title alone. It does not, however, name or distinguish itself from plausible siblings such as pixel_sprite or fix_pixel_art, so it stops 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied by the phrase 'AI-made sprite sheet or a set of animation frames,' which tells the agent the input class this tool expects. There is no explicit when-to-use versus when-not guidance, no mention of the sibling tools for adjacent tasks, and no statement of prerequisites (e.g. that an image source is mandatory). Adequate but with clear gaps.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources