Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

draw_grid_ascii

Paint a complete 2D sprite or region on a live canvas by mapping ASCII character rows to hex colors, skipping unmapped dots and spaces so agents can define pixel art quickly and consistently.

Instructions

Paint an entire 2D sprite or region quickly using ASCII character rows and a char->hex color palette map. Characters "." or " " are skipped unless mapped in palette or clearBackground is true.

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": {
      "rows": "<rows>",
      "palette": "<palette>"
    },
    "name": "draw_grid_ascii"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesArray of equal-length strings representing pixel rows from top to bottom.
offsetXNoTop-left X offset on canvas (default: 0).
offsetYNoTop-left Y offset on canvas (default: 0).
paletteYesMapping of single character to hex color (e.g. {"#": "#1e1b2e", "R": "#e63946", ".": null}).
clearLayerNoClear entire target layer before painting.
layerIndexNoTarget 2D layer index (defaults to active layer).
clearBackgroundNoErase "." or space characters that are not in palette.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the dot/space skip rule and the clearBackground exception, but says nothing about whether existing pixels are overwritten, whether the operation is undoable, or what happens if the target layer or offsets are invalid.

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?

Two sentences, both earning their place: the mechanism first, the edge-case rule second. No filler, no restatement of the tool name.

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

Completeness3/5

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

For a seven-parameter mutating tool with a nested palette object and no annotations or output schema, the description covers the core mental model but leaves overwrite/undo/error semantics unstated. Adequate to invoke correctly, not complete enough to predict side effects.

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 by explaining how palette entries and clearBackground interact to decide whether '.' and space characters are painted or erased. That is interpretive value the schema's per-field descriptions do not supply.

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?

The description names a specific verb ('Paint'), resource ('entire 2D sprite or region'), and mechanism (ASCII character rows plus a char->hex palette map), which is enough to distinguish it from a per-pixel tool like draw_pixels. It stops short of explicitly naming a sibling to contrast against, so it lands at 4 rather than 5.

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?

'Paint ... quickly' implies bulk artwork is the intended case versus pixel-by-pixel drawing, but the guidance is only implied. There is no stated when-not condition, no mention of prerequisites such as the target layer existing, and no explicit pointer to an alternative tool.

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