Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

draw_shape

Draws 2D geometric shapes—lines, rectangles, circles, and ellipses—on a specified layer using coordinates, color, and size. Use it to construct pixel art sprites and layered compositions.

Instructions

Draw a 2D geometric shape (line, rect, circle, ellipse) on a 2D layer.

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": {
      "shape": "<shape>",
      "x": "<x>",
      "y": "<y>",
      "color": "<color>"
    },
    "name": "draw_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesStart X (line/rect) or center X (circle/ellipse).
yYesStart Y (line/rect) or center Y (circle/ellipse).
x2NoEnd X for line/rect.
y2NoEnd Y for line/rect.
colorYesHex color string e.g. "#38bdf8".
shapeYes
widthNoWidth for rect or ellipse.
filledNoFill interior (default: true).
heightNoHeight for rect or ellipse.
radiusNoRadius for circle.
layerIndexNoTarget 2D layer index.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/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 and adds almost nothing: it does not say whether drawing overwrites existing pixels, whether a layer must already exist, what happens when layerIndex is omitted, or whether filled defaults apply per shape. A mutation tool with zero annotation coverage needs far more disclosure.

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?

One short, front-loaded sentence with no filler. It is efficient, though the brevity is partly the cause of the missing behavioral detail rather than a sign of completeness.

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

Completeness2/5

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

With 11 parameters, no annotations, and no output schema, a single-sentence description leaves significant gaps: which parameters are required, what the default layer target is, and whether the operation mutates or replaces canvas content are all left to inference.

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 91%, so per-parameter meaning (center vs start coordinates, rect vs circle dimensions) is already well documented in the schema. The description contributes no additional parameter semantics, which is acceptable at this coverage level but adds no value.

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 ('Draw') and resource ('2D geometric shape') and enumerates the four supported shape types, which lets an agent distinguish it from draw_pixels and draw_grid_ascii. It does not explicitly name those siblings or contrast itself with add_3d_primitive beyond the '2D' qualifier.

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 guidance on when to choose this over draw_pixels, draw_grid_ascii, or add_3d_primitive, and no prerequisites such as whether a layer/project must exist first. The only usage signal is implicit in '2D layer'.

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