Skip to main content
Glama

pack_sprite_sheet

Pack pixel art document frames into a transparent PNG sprite sheet arranged row by row, with configurable cell dimensions, spacing, and alignment.

Instructions

Pack document frames into a transparent PNG sprite sheet in row-major order and write it to disk. Sprites may have different sizes; cell dimensions default to the largest sprite. This is delivery output and returns no preview image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoOutput path (default: a unique PNG in the exports directory)
alignNoAlignment of smaller sprites within their cells (default top_left)
marginNoTransparent border around the sheet (default 0)
columnsNoColumns in the sheet (default: roughly square)
spacingNoTransparent pixels between cells (default 0)
spritesYes
cell_widthNoCell width (default: widest sprite)
cell_heightNoCell height (default: tallest sprite)
return_base64NoAlso return the PNG bytes as base64 text (default false)
Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behavioral traits: writes to disk, no preview returned, variable sprite sizes with automatic cell sizing, and optional base64 return. However, it does not mention whether the document is modified or other side effects.

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 concise sentences with no wasted words. The first sentence provides the core operation and order, the second adds crucial context about delivery nature and the lack of preview. 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 9 parameters with complex defaults and no output schema, the description adequately covers the overall behavior, output format, and key defaults. It could mention that sprites are frames from documents, but that is evident from the 'doc_id' and 'frame' fields in the schema. Missing explicit mention of row-major order impact on layout, but it's clear enough.

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 high (89%), so baseline is 3. The description adds value by explaining 'cell dimensions default to the largest sprite', 'transparent border', and 'transparent pixels between cells', which directly clarify parameters margin, spacing, cell_width, cell_height. This goes beyond schema descriptions.

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 specifies the action ('Pack document frames'), the output ('transparent PNG sprite sheet'), and the order ('row-major'). It also distinguishes itself by stating 'This is delivery output and returns no preview image,' differentiating from possible preview tools among siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description lacks explicit guidance on when to use this tool versus alternatives like 'export' or 'split_sprite_sheet'. It only implies final delivery by stating 'delivery output' and 'no preview', but does not provide when-not-to-use or name alternative tools.

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