Skip to main content
Glama

Upload a sprite to the library

upload_sprite

Add an image to the user's SpriteForge library as a new sprite. Pass png_base64 (a PNG up to 128x128 and 256 colours; pixels under 50% alpha become transparent) or art (palette + index grid you drafted). For a file on disk in a shell, don't paste base64: upload it with curl to the free editor endpoint (see the edit-sprite skill) and call save_to_library with the returned id.

Input Schema

NameRequiredDescriptionDefault
artNoPixel art in SpriteForge's format: palette = hex colours, grid = rows of palette indexes (-1 = transparent). Optional frames for an animation, each { grid } on the same palette.
nameNoSprite name (default "sprite").
png_base64NoA PNG file, base64-encoded (a data: URL prefix is fine).
project_idNoProject to add it to (default: the most recently used).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing processing rules the agent could not otherwise know: 128x128 and 256-colour limits, and that pixels under 50% alpha become transparent. It does not address duplicate behaviour, which matters because idempotentHint=false is declared but the description never says whether re-uploading the same image creates a second sprite.

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 dense sentences with the primary action and inputs front-loaded, and the fallback routing last. Every sentence carries new information; nothing restates the title or the annotations.

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?

Covers a mutation tool with a nested-object parameter well, including constraints and the escape hatch for on-disk files. The remaining gap is the return value: with no output schema and no statement of what comes back, the agent must infer that an id or sprite is returned in order to chain into save_art or open_sprite_in_editor.

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 100%, so the baseline is 3, but the description adds real meaning: the PNG format/size/alpha constraints on png_base64 and the framing of art as 'palette + index grid you drafted'. It stops short of explaining the interaction between project_id defaulting and the 'most recently used' fallback already documented in 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?

States a specific verb and resource ('Add an image to the user's SpriteForge library as a new sprite') and immediately names the two input modes. The third sentence names the sibling save_to_library and the condition that selects it, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit alternatives and an exclusion: pass png_base64 or art, but for a file on disk 'don't paste base64' — upload via curl to the editor endpoint and then call save_to_library with the returned id. Both the when and the when-not are stated with the concrete substitute tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources