Skip to main content
Glama

draw_isometric_box

Draw a 2:1 isometric box with top, left, and right faces in Aseprite, enabling consistent isometric shapes for pixel-art scenes.

Instructions

Draw a 2:1 isometric box: a top face over a left and a right side face.

(x, y) is the top corner of the top face, the point where pixel (x, y)'s top-left corner is; the two topmost pixels are (x - 1, y) and (x, y). From there the top face runs w tiles down-right and d tiles down-left, each tile step moving 2 px sideways and 1 px down. The left face hangs h px below the lower-left edge (2w px wide), the right face below the lower-right edge (2d px wide). The box covers columns x - 2d .. x + 2w - 1 and rows y .. y + w + d + h - 1. A pixel belongs to the face that contains its centre, so faces never overlap and leave no gaps. outline paints the pixels just outside the box (left, right, above, below). Pixels off the canvas are skipped and counted; painted includes the outline.

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>",
      "x": "<x>",
      "y": "<y>",
      "w": "<w>",
      "d": "<d>",
      "h": "<h>",
      "top": "<top>",
      "left": "<left>",
      "right": "<right>"
    },
    "name": "draw_isometric_box"
  }
}

Input Schema

NameRequiredDescriptionDefault
dYesTiles along the left-going axis
hYesHeight of the side faces in pixels
wYesTiles along the right-going axis
xYesx of the top corner of the top face
yYesy of the top corner of the top face
topYes'#RRGGBB', '#RRGGBBAA' or 'transparent'
leftYes'#RRGGBB', '#RRGGBBAA' or 'transparent'
pathYesSprite file. Relative paths resolve against the server root.
blendNofalse: pixels get exactly this colour (transparent erases, except on a background layer, which ignores alpha); true: the colour is alpha-blended over what is there
frameNo1-based frame number
layerNoLayer name or 'group/child' path; empty = the bottom-most normal layer
rightYes'#RRGGBB', '#RRGGBBAA' or 'transparent'
outlineNoColour for a 1-pixel ring around the box
create_celNoAdd an empty cel when the layer has none in that frame

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: faces never overlap or leave gaps, off-canvas pixels are skipped and counted, and painted includes the outline. It does not state that this writes to a sprite file on disk, how existing pixels are affected, or what happens when the target layer lacks a cel.

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?

Dense but front-loaded: the first line states the shape and the rest is almost entirely geometric contract with little filler. The single-paragraph run-on format makes the layer/outline rules harder to scan than bullets would, but no sentence is wasted.

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?

Output schema and full parameter descriptions exist, so return values needn't be explained. For a 14-parameter mutating draw call the geometric specification is unusually complete, though it omits anything about the write target (path/layer/frame semantics) beyond the schema fields.

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 baseline is 3, but the description genuinely adds meaning beyond the schema for x, y, w, d, h and outline — e.g., a tile step is 2 px sideways and 1 px down, and the box's covered column/row range is spelled out. It says nothing about blend, frame, layer, path, or create_cel, though the schema documents those fully.

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?

A specific verb and resource: 'Draw a 2:1 isometric box' with a top, left, and right face — an agent immediately knows the shape produced. It doesn't explicitly differentiate itself from generic siblings like draw_polygon or draw_rect, but the precise geometric contract makes the distinction implicit.

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?

There is no when-to-use or when-not guidance, no mention of alternatives for drawing box-like shapes, and no discussion of the layer/frame/create_cel decisions the caller must make. The description explains geometry but says nothing about choosing this tool.

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