Skip to main content
Glama

pack_sprite_atlas

Pack all PNGs from a folder into a single sprite atlas (atlas.png + JSON) to reduce draw calls and improve 2D rendering performance in Unity.

Instructions

Packt alle PNGs eines Ordners (rekursiv) in einen kohärenten Sprite-Atlas (atlas.png + atlas.json/JsonHash, POT, getrimmt) via free-tex-packer-core. Für 2D-Kohärenz

  • weniger Draw Calls. In Unity als Sprite (Multiple) slicen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_dirYes
output_dirYes
nameNoatlas
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false. The description adds behavioral context beyond annotations: it creates two output files (atlas.png and atlas.json/JsonHash), uses a specific library, recursively scans the input directory, and performs trimming and power-of-two sizing. It does not disclose prerequisites or error handling, which are minor gaps.

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?

The description is a single, dense sentence that efficiently conveys the action, method, output format, benefits, and usage hint. It is front-loaded with the verb 'Packt' and avoids extraneous words. Every part earns its place.

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

Completeness3/5

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

The tool has moderate complexity with 3 parameters and no output schema. The description covers the output format and benefits but fails to explain the parameters explicitly. It also omits details like prerequisites (existing directories), handling of non-PNG files, and potential errors. This leaves gaps for an agent to safely invoke the tool.

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

Parameters2/5

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

With 0% schema description coverage, the description must compensate. It implicitly mentions input and output directories by describing the pack operation, but it does not explicitly explain any of the three parameters (input_dir, output_dir, name). The 'name' parameter's default is not mentioned, and the purpose of each parameter is left to inference.

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 that it packs all PNGs from a folder recursively into a sprite atlas, specifying output files (atlas.png, atlas.json/JsonHash) and the underlying library (free-tex-packer-core). It distinguishes itself from other asset tools by focusing on 2D coherence and fewer draw calls, with a Unity-specific slicing hint.

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 context for when to use the tool (for 2D coherence and reducing draw calls) and hints at usage in Unity (slicing as Sprite Multiple). However, it does not explicitly mention when not to use it or compare it to alternatives like manual packing or other tools, though the sibling list includes some related asset creation 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/MauricePutinas/Unity-MCP-Claude-Code'

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