Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

draw_pixels

Paint individual pixels on a 2D layer in one undoable operation by setting 0-based x/y coordinates to hex colors or transparent to erase.

Instructions

Paint individual pixels on a 2D layer in a single undoable operation. Coordinates are 0-based from top-left (x: 0..width-1, y: 0..height-1).

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": {
      "pixels": "<pixels>"
    },
    "name": "draw_pixels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pixelsYesList of pixels to set.
layerIndexNoTarget 2D layer index (defaults to active layer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that the whole call is one undoable/atomic operation and gives the coordinate convention, but says nothing about permissions, failure modes (invalid layerIndex, out-of-bounds coords), or what the call returns.

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 short sentences, with the core action and atomicity front-loaded and the coordinate convention following. Nothing is wasted and nothing important is buried.

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?

For a two-parameter mutation tool with a fully documented schema and no output schema, the description covers the essentials: what it does, atomicity, and coordinate space. Only error/edge behavior on layerIndex and out-of-bounds coordinates is left unaddressed.

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 beyond the schema: 0-based origin at top-left and the valid x/y ranges (0..width-1, 0..height-1). The erase behavior is already documented in the schema's color field, so repeating it is correctly avoided.

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: 'Paint individual pixels on a 2D layer.' The word 'individual' implicitly separates it from draw_shape, draw_grid_ascii, and flood_fill, though no sibling is named 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?

Usage is implied by the pixel-level scope and the 'single undoable operation' framing, which suggests batching many pixels in one call rather than repeating. It never states when to prefer draw_shape or flood_fill instead, or any preconditions such as the layer needing to exist.

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