Skip to main content
Glama

Generate sprite

generate_sprite

Generate one or more pixel-art sprites from a text prompt with custom width, height, and variants; each result is saved as a PNG preview in a unique output directory.

Instructions

Generate one or more pixel-art sprites from a prompt. Width and height are 1..512 pixels. Each result is saved in a unique output directory and returned as a PNG preview.

Input Schema

NameRequiredDescriptionDefault
seedNo
widthNo
heightNo
promptYes
paletteNo
variantsNo
backgroundNoauto
output_dirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false. The description usefully adds that output is written to a unique directory and surfaced as a PNG preview, but says nothing about latency, cost of variants, or how seeds affect reproducibility.

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?

Three short sentences, front-loaded with what the tool produces, followed by the one non-obvious constraint and the return behavior. Nothing is padded.

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

Completeness2/5

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

With 8 parameters, 0% schema coverage, and no output schema, the description leaves most inputs (seed, palette, variants, background, output_dir) undocumented. The output preview note is helpful but the input surface is largely unexplained.

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?

Schema description coverage is 0% across 8 parameters, so the description must carry the load. It only restates width/height bounds (already in the schema) and ignores seed, palette, variants, background, and output_dir entirely.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generate ... pixel-art sprites from a prompt") and mentions it can produce multiple results. It's clearly the creation tool among siblings like edit_sprite, inpaint_sprite, and rotate_sprite, though it never names those alternatives explicitly.

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?

"From a prompt" implies use this when creating from scratch rather than modifying an existing sprite, which is the only usage signal. There is no explicit when-to-use/when-not guidance relative to edit_sprite or inpaint_sprite.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.