Skip to main content
Glama

Pixel sprite to PNG and editor link

pixel_sprite
Read-only

Turn pixel art written as text into a PNG, plus a link that opens it in the GameShipKit Pixel Art Editor so the user can keep editing it by hand. Each string in rows is one line of pixels, each character is one pixel and "." is transparent. colors maps each character to a hex colour. Use frames instead of rows for a short animation. Up to 64×64 pixels, 62 colours and 16 frames. Keep an outline and 3 to 16 colours for clean pixel art.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "colors": "<colors>"
    },
    "name": "pixel_sprite"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoPlayback speed for frames.
nameNoShort file name, e.g. "sword".
rowsNoOne string per line of pixels, top to bottom, all the same length, e.g. ["..kk..", ".krrk.", "krrrrk"].
scaleNoHow many screen pixels per art pixel in the PNG.
colorsYesCharacter to colour, e.g. {"k": "#1a1c2c", "r": "#b13e53"}. "." is always transparent.
framesNoFor an animation: one rows list per frame, all the same size. Use instead of rows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

The readOnlyHint already establishes that this is a non-mutating operation. The description adds useful behavioral context: it returns a PNG plus an editor link, and it discloses hard limits of 64x64 pixels, 62 colours, and 16 frames.

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 compact and front-loaded, leading with what the tool produces before explaining input conventions and limits. Some of the row/color explanation duplicates schema text, but the overall structure is efficient.

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

Completeness5/5

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

For a nested-parameter tool with no output schema, the description explains both the return artifacts (PNG and editor link) and the input conventions for rows, colors, and frames. It also states the operational limits and style constraints an agent needs to call it correctly.

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 coverage is 100%, so the input schema already explains rows, colors, frames, fps, scale, and name. The description reinforces the row/character/transparent-dot model and the rows-versus-frames distinction, but it adds little parameter meaning beyond the schema aside from global size and frame limits.

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 uses a specific verb and resource: it turns pixel art written as text into a PNG and an editor link. It clearly distinguishes the tool as a conversion/editor-link generator rather than a generic image or palette tool.

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?

It gives clear mode-selection guidance: use rows for a still image and frames instead of rows for a short animation. It does not explicitly state when to use this tool versus sibling tools or list exclusions, so it stops short of full routing guidance.

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