Skip to main content
Glama

generate_pixel_art

Generate pixel-art PNGs from text prompts with customizable grid size, color palette, and optional seed. Saves directly to your project directory.

Instructions

Generate a pixel-art PNG from a text prompt and save it.

Args: prompt: What to draw, e.g. "cozy library interior, side view, tall arched windows, warm lamps". out_path: Save location (relative paths resolve against PIXEL_OUT_DIR), e.g. "assets/pixel/library/background.png". width: Pixel-grid width (smaller = chunkier). 160x90 suits 16:9 scenes; use 32-64 for sprites/props. height: Pixel-grid height. colors: Palette size (16-48 reads as retro). seed: Optional seed for reproducible output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
out_pathYes
widthNo
heightNo
colorsNo
seedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses behavioral traits such as saving to a file, path resolution against PIXEL_OUT_DIR, default dimensions and their recommended use cases, and a seed parameter for reproducibility. It does not mention overwrite behavior or error handling, but overall adds significant context.

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?

The description is well-structured with a clear summary line followed by parameter details. It is mostly concise, though the parameter examples add length. Every sentence adds value, and the structure is easy to parse.

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 6 parameters, 0% schema coverage, and an existing output schema, the description covers all parameters with good context. It does not detail return values, but that is acceptable since an output schema exists. The description is sufficient for an agent to understand and use the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It provides detailed explanations for all 6 parameters: prompt (example), out_path (path hints), width/height (recommended sizes for different uses), colors (palette hint), and seed (optional for reproducibility). Each parameter gains meaningful semantics beyond the schema fields.

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 generates a pixel-art PNG from a text prompt and saves it. It specifies the verb ('generate', 'save') and resource ('pixel-art PNG'), and implicitly distinguishes from the sibling 'pixelate_image' which operates on existing images.

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?

The description implies usage for creating pixel art from scratch but does not explicitly state when to use this tool versus the sibling 'pixelate_image'. No when-not-to-use or alternative guidance is provided, only implied context.

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/uncagedspirit/pixel-art-mcp'

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