Skip to main content
Glama

split_sprite_sheet

Split a PNG sprite sheet into individual pixel art documents. Handles margins and spacing between cells; skips transparent cells by default.

Instructions

Split a regular PNG sprite sheet into separate pixel-mcp documents in row-major order. Provide exactly one of png_base64 or path. Supports sheet margins and spacing between cells; transparent cells are skipped by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoPath to a PNG on the server filesystem (mutually exclusive with png_base64)
rowsNoRows to read (default: all complete rows that fit)
marginNoTransparent or decorative border around every edge of the sheet (default 0)
columnsNoColumns to read (default: all complete columns that fit)
spacingNoPixels between adjacent cells (default 0)
max_colorsNoMaximum opaque colors in each new document (default 63; larger palettes are quantized per sprite)
png_base64NoPNG file content, base64-encoded (mutually exclusive with path)
skip_emptyNoDo not create documents for fully transparent cells (default true)
sprite_widthYes
sprite_heightYes
Behavior3/5

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

No annotations are provided, so the description bears full burden. It discloses that transparent cells are skipped by default and mentions margins and spacing. However, it does not reveal whether the original file is modified or if there are any destructive side effects, which is relevant for a tool that creates new documents.

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?

Two sentences front-load the core purpose and input format, followed by essential notes on skipping empty cells and margin/spacing. No extraneous information; every sentence earns its place.

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?

Given the tool's complexity (10 parameters, no output schema, no annotations), the description covers the main algorithm and defaults adequately. It could mention that created documents are added to the active document list, but overall it is sufficient for an AI agent to invoke correctly.

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 80% schema coverage, the description adds meaning beyond the schema by explaining the row-major order, the mutual exclusivity of png_base64 and path, and the default skip_empty behavior. This helps an agent use parameters correctly.

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 tool splits a regular PNG sprite sheet into separate pixel-mcp documents in row-major order. This specific verb+resource+output distinguishes it from sibling tools like pack_sprite_sheet (which likely does the opposite) and other document operations.

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 provides clear context on when to use the tool: to split a sprite sheet. It explicitly requires providing one of png_base64 or path. However, it does not explicitly mention when not to use it or suggest alternatives, though the sibling context hints at pack_sprite_sheet as the inverse operation.

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/ehm-93/pixel-mcp'

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