Skip to main content
Glama

draw_ellipse

Draw an ellipse or circle outline—or a filled shape—centred on pixel coordinates in an Aseprite sprite, with optional colour blending, layer/frame targeting, and automatic cel creation.

Instructions

Draw an ellipse centred on (cx, cy), 2rx+1 pixels wide and 2ry+1 tall.

rx == ry draws a circle; a zero radius gives a line, both zero a single pixel. The outline is exactly the border of the filled shape. Clipped to the canvas.

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>",
      "cx": "<cx>",
      "cy": "<cy>",
      "rx": "<rx>",
      "ry": "<ry>",
      "color": "<color>"
    },
    "name": "draw_ellipse"
  }
}

Input Schema

NameRequiredDescriptionDefault
cxYesCentre x
cyYesCentre y
rxYesHorizontal radius in pixels
ryYesVertical radius in pixels
fillNoFill the shape; false draws the outline only
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
colorYes'#RRGGBB', '#RRGGBBAA' or 'transparent'
frameNo1-based frame number
layerNoLayer name or 'group/child' path; empty = the bottom-most normal layer
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

A3.7/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 discloses clipping to the canvas and the key semantic that the outline is exactly the border of the filled shape, which is real information beyond the schema; but it says nothing about overwrite behavior, transparency/erasing, or layer/cel side effects — those are only inferable from parameter descriptions.

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?

Four short sentences, front-loaded with the operation and its exact sizing, then edge cases, then boundary semantics. There is no filler and every sentence contributes a distinct fact an agent would otherwise get wrong.

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 an 11-parameter drawing primitive with no annotations, the description covers the geometry contract, edge cases, and clipping, while the schema handles fill/blend/layer/create_cel and an output schema exists to describe results. The remaining gap is error/prerequisite behavior (missing sprite, absent layer) and the interaction between `fill` and the statement about the outline.

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 a baseline of 3 applies, and the description earns above that by defining cx/cy/rx/ry in terms of rendered pixel extent rather than merely restating them as "Centre x" or "Horizontal radius." It still leaves fill, blend, layer, and frame entirely to the schema, which is acceptable given full coverage.

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 opens with a specific verb and resource ("Draw an ellipse") and pins down the exact geometry, including the 2*rx+1 / 2*ry+1 pixel convention that distinguishes it from a naive radius interpretation. It does not explicitly contrast itself with siblings such as draw_rect or draw_line, but the shape name plus stated dimensions make the target unambiguous.

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?

Degenerate-case guidance is genuinely useful (rx == ry for a circle, zero radius for a line, both zero for a single pixel), which tells the agent how to reuse this tool instead of seeking a circle or line primitive. However, there is no statement about when to prefer this over alternatives or about prerequisites such as the target path/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.