Skip to main content
Glama

forge_sprite

Generate a single pixel art sprite with automated prompt engineering, AI generation, and post-processing. Outputs a transparent PNG at standard sizes.

Instructions

Generate a single pixel art sprite. Handles prompt engineering, generation via Gemini, and post-processing (crop, background removal, pixelation downscale, square padding) automatically. Returns a clean, transparent PNG at proper pixel art resolution. Output size snaps to standard pixel art sizes (16, 24, 32, 48, 64, 96, 128).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoTarget sprite size in pixels (default: 48). Snaps to nearest standard size. Recommended: 16-24 for icons/projectiles/powerups, 32 for tiles/small sprites, 48 for game sprites/characters (PixelLab default), 64 for detailed characters, 96-128 for bosses/large objects. Set to 0 to skip downscale.
modelNoModel alias or full ID. Aliases: 25, nano-banana, banana, banana-2, nano-banana-2, gemini-flash, flash, gemini-pro, pro, gemini-25, gemini-flash-25 (default: nano-banana)
styleNoVisual style preset (default: clean)
aspectNoAspect ratio (default: 1:1)
squareNoPad output to square (default: true)
backgroundNoBackground color for generation. Use "auto" to pick based on description. Use "chromakey" for best transparency (HSV-based green screen removal). Named colors: chromakey, forest, sky, dungeon, lava, ocean, sand, snow, night. (default: black)
outputPathYesOutput file path (e.g. "public/assets/games/rpg/slime.png")
referencesNoPaths to existing PNG/JPEG assets to match visual style.
descriptionYesWhat the sprite is (e.g. "green slime enemy with horns", "cyan spaceship", "golden coin")
Behavior4/5

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

With no annotations provided, the description carries the full burden and reveals key behaviors: automatic prompt engineering, post-processing steps (crop, background removal, downscale, padding), and standard size snapping. It does not disclose failure modes or file overwrite behavior, but the disclosed pipeline and output format are substantial.

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 three sentences long, front-loaded with the primary action, and contains no redundancy. Each sentence adds distinct value: scope, pipeline, and output guarantees.

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?

The description covers the overall workflow, output format/resolution, and size behavior, which is solid given the rich schema (9 params). It does not explicitly state that the file is written to outputPath or discuss edge cases, but the schema covers parameters and the output format statement makes it reasonably complete.

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 100%, and the schema already contains rich parameter details (size recommendations, background semantics, model aliases). The description only adds a high-level note about size snapping, which is already included in the size parameter, so it does not materially increase understanding beyond the schema.

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 opens with a specific verb+resource statement ('Generate a single pixel art sprite'), and the word 'single' clearly distinguishes it from sibling tools like forge_animation and forge_tileset. This makes the tool's scope immediately clear.

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 by stating the tool handles the full pipeline (prompt engineering, generation, post-processing) automatically, implying it is the go-to for a single finished sprite. It does not explicitly name alternatives or exclusions, but the 'single' qualifier and pipeline coverage give strong contextual guidance.

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/freema/pixelforge-mcp'

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