Skip to main content
Glama
Chandelier

Chandelier

by acidka

create_path

Create vector paths from point lists or SVG path data, including compound paths, with fill/stroke styling and layer/group placement.

Instructions

Create a path from points, several point lists (compound path), or SVG path data "d" (SVG y-down units = session units; scale and x, y offset them — so an SVG icon can be dropped in at any size). Default paint when neither fill nor stroke is given: closed → black fill, open → 1 pt 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 or parent. Many at once: items:[{…}]. 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_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
dNoSVG path data: M L H V C S Q T A Z, absolute/relative; several subpaths → compound path
xNo
yNo
capNo
dashNo
fillNo
joinNo
nameNo
noteNo
blendNomultiply, screen… (blend mode)
itemsNomany at once: props as above; top-level ones are shared defaults
layerNoname (created if missing; stays inactive) or @active
pathsNoseveral point lists → one compound path (holes)
scaleNomultiplies point / d coordinates (then offset by x, y)
closedNo
hiddenNo
lockedNo
parentNogroup ref or "layer:Name"
pointsNo[x,y] corners, or {a:[x,y], in:[x,y], out:[x,y]} with Bézier handles (same format get_items returns)
strokeNo
opacityNo
fill_ruleNo
stroke_widthNo
graphic_styleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses default paint rules (closed → black fill, open → 1 pt black stroke), that graphic_style is applied first, that a named layer is created if missing and stays inactive, and the return shape {count, items:[{uuid, name, type, box}]}. It omits error/permission behavior, but covers the operationally important traits a caller needs.

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 deliberately organized into labeled groups (Appearance, Placement, Many at once) with the core purpose front-loaded. The telegraphic style packs a lot into few sentences, though a few list-style fragments require the reader to infer meaning.

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 24-parameter creation tool with no annotations and no output schema, the description covers defaults, coordinate/scale semantics, layer creation behavior, batching, and even the return shape. Remaining gaps are minor: error handling and how fill_rule interacts with compound paths are not addressed.

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 33% across 24 parameters, so the description must compensate and largely does: it defines units (pt), the 'none' sentinel for stroke, [] as solid dash, scale/offset ordering for d and point coordinates, parent/layer placement semantics, and that top-level properties act as shared defaults for items. Several appearance fields (cap, join, opacity, blend, fill_rule) are only named without explanation, leaving residual ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Create a path') and immediately enumerates the three distinct input modes: points, several point lists (compound path), or SVG path data 'd'. This distinguishes it cleanly from siblings like create_shape and create_text, which produce different object types.

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

Usage Guidelines4/5

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

Gives clear conditional guidance among its own input modes (points vs. paths vs. 'd') and explains the practical use case of dropping in an SVG icon at any size. It does not state when to prefer a sibling such as create_shape or place, so the routing is clear but not exclusionary.

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