Skip to main content
Glama
Chandelier

Chandelier

by acidka

create_shape

Draw rectangles, ellipses, polygons, stars, and lines in Adobe Illustrator with custom fill, stroke, opacity, layer placement, and batch creation. Returns created item IDs and bounds.

Instructions

Create shapes. rect / rounded_rect (r) / ellipse / polygon (sides) / star (points, inner) take a box x, y, w, h (top-left; polygon and star are inscribed in it); line takes x1, y1, x2, y2. Default paint: no fill + 1 pt black stroke when neither fill nor stroke is given (lines: black stroke). Appearance: fill, stroke (colour or "none"), stroke_width (pt), dash (pt; [] = solid), cap, join, opacity, blend, graphic_style (applied first); name, note, hidden, locked. Placement: layer (name, created if missing) or parent (group ref / "layer:Name"); default the active layer. Many at once: items:[{…}, …] — each item's props override the shared ones given at the top level (e.g. shared fill, per-item x/y). Returns {count, items:[{uuid, name, type, box}]}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNo
rNocorner radius of rounded_rect (session units, default 4)
wNo
xNo
yNo
x1No
x2No
y1No
y2No
capNo
dashNo
fillNo
joinNo
nameNo
noteNo
blendNomultiply, screen… (blend mode)
innerNostar inner radius as a fraction of the outer, default 0.5
itemsNomany at once: props as above; top-level ones are shared defaults
layerNoname (created if missing; stays inactive) or @active
shapeNodefault rect
sidesNopolygon, default 6
hiddenNo
lockedNo
parentNogroup ref or "layer:Name"
pointsNostar, default 5
strokeNo
opacityNo
stroke_widthNo
graphic_styleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.4/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 entire burden. It does disclose useful defaults (no fill plus 1pt black stroke when neither is given, default target is the active layer, graphic_style applied first) and the return payload, but for a 29-parameter mutation tool it says nothing about coordinate units, permissions, whether created layers persist or become active, item-count limits, or what happens on partial failure in a batch.

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?

Front-loaded with the type-to-geometry mapping, then layered into Appearance, Placement, and batch sections. The telegraphic style ('rect / rounded_rect (r) / ellipse / polygon (sides)') is dense but efficient; nearly every clause carries information an agent needs.

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 tool with 29 optional parameters, no annotations, and no output schema, the description covers shape selection, defaults, paint, placement, batching, and the return value, which is close to complete. Remaining gaps are the mutation risks and unit conventions noted above.

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 only 31%, and the description compensates well: it groups parameters by shape type (box vs. line endpoints, sides for polygon, points/inner for star), explains that a named layer is created if missing, that parent accepts a group ref or 'layer:Name', and that per-item props override shared top-level ones. This is real meaning beyond the schema, with the caveat that fill/stroke format and units are left thin.

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 first sentence states a specific verb and resource ('Create shapes') and immediately enumerates the six supported shape types with the geometry each requires (box x/y/w/h for rect/rounded_rect/ellipse/polygon/star, endpoints for line). That distinguishes it from create_path and create_text by construction, though it never names those siblings 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 rather than stated: the per-shape parameter mapping tells an agent which call shape to use for which geometry, and the 'Many at once' line signals batching is preferable to repeated calls. There is no explicit when-not guidance or pointer to an alternative tool for freeform paths or text.

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