Skip to main content
Glama

draw

Destructive

Renders shapes, pixel grids, and lines onto a specific Aseprite layer or multiple frames. Draw rects, circles, pixels, and clear areas to build or edit sprites.

Instructions

Draw on a layer (default: the topmost image layer) at frame, or on every frame listed in frames. Ops are applied in order; colors are '#rrggbb' or '#rrggbbaa'.

{"op":"rows","x":0,"y":0,"rows":["..kk..",".kssk."],"key":{"k":"#1a1c2c","s":"#f4b41b"}} Pixel-art grid: one character per pixel, '.' or ' ' leaves the pixel unchanged. Best suited to sprites. {"op":"pixels","points":[[x,y],...],"color":"#ffffff"} or points [[x,y,"#rrggbb"],...] {"op":"rect","x":0,"y":0,"w":8,"h":8,"color":"#000000","fill":true} {"op":"line","x1":0,"y1":0,"x2":7,"y2":7,"color":"#000000"} {"op":"circle","cx":8,"cy":8,"r":4,"color":"#000000","fill":false} {"op":"clear"} or {"op":"clear","color":"#00000000"}

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": {
      "path": "<path>",
      "ops": "<ops>"
    },
    "name": "draw"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes
pathYes
frameNo
layerNo
framesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructive=true and readOnly=false, and the description adds useful behavior: ops are applied in order, the default layer is topmost, and colors use #rrggbb/#rrggbbaa. It does not explicitly state that drawing overwrites pixels or what errors occur, but the clear op and ordering note add context beyond the annotations.

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 front-loaded with the core action and then uses compact op examples that earn their space. The examples are useful for a complex ops parameter, though the overall text is necessarily longer than a simple CRUD description.

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 destructive drawing tool with no output schema and 0% schema coverage, the description covers the op language well but omits the required `path`, error behavior, and return information. It is adequate to start drawing ops but not fully complete for correct invocation.

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 description coverage is 0%, so the description must compensate. It provides detailed semantics for the complex `ops` parameter and partial meaning for `layer`, `frame`, and `frames`, but it never explains the required `path` parameter, leaving a significant gap.

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 specifies a drawing action on a layer and frame(s), and its op examples make the tool's purpose concrete. It does not mention the required `path` target, so the resource being drawn on is not fully specified.

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

Usage Guidelines2/5

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

The description explains frame vs frames and default layer, but gives no guidance on when to use this tool instead of siblings such as add_layer, add_frames, or create_sprite. It contains no when-to-use or when-not-to-use instructions.

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