Skip to main content
Glama
Chandelier

Chandelier

by acidka

layers

List, add, update, remove, reorder, or activate layers in the active Adobe Illustrator document, including sublayers, visibility, locking, and print options.

Instructions

Layers of the active document. Names may be "Parent/Child" paths; a bare name is looked up at any depth; "@active" / "@first" name the active / top layer; "Layer 1" also finds the localised default layer. action: "list" (tree with items, visible, locked, printable, color, sublayers) · "add" (name; parent for a sublayer; position; props) · "update" (name → new_name and props) · "remove" (name; refuses if it has items unless force:true) · "reorder" (name, position) · "activate" (name). Props: visible, locked, printable (false = non-printing), template, dim_images, color (layer highlight, "#rrggbb"), opacity. position: "top" | "bottom" | "above:Name" | "below:Name".

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": "layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
colorNo
forceNo
actionNo
lockedNo
parentNo
opacityNo
visibleNo
activateNoadd: make it the active layer (default true)
new_nameNo
positionNo
templateNo
printableNo
dim_imagesNo

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 the destructive guard on remove (refuses if the layer has items unless force:true), the activate side effect, and the default-true activate behavior on add. It omits any statement about permissions, reversibility of remove/update, or error responses, which keeps it below a 5.

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 resource statement comes first, then a compact action-by-action map, then prop definitions. The separator notation and terse clauses are efficient, though the punctuation-heavy style slightly hurts scannability for an agent parsing it in one pass.

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 14-parameter, unannotated, no-output-schema tool, this covers nearly everything an agent needs: actions, lookup syntax, props, positions, and even the shape of list output. Missing only fallback behavior when action is absent and error/permission semantics, which are meaningful but secondary.

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 description coverage is only 7%, so the description must compensate and largely does: it defines name-path resolution ('Parent/Child', bare-name any-depth lookup, @active/@first, localised 'Layer 1'), every prop field including opacity and color format, and all position values. Gaps remain around the standalone 'activate' parameter versus the 'activate' action, and what happens when action is omitted, so it is not fully complete.

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?

States a specific resource ('Layers of the active document') and enumerates all six supported actions with their required inputs, so an agent can tell exactly what this tool does and how it differs from siblings like artboards, selection, or get_tree. The action-by-action breakdown makes the capability boundary unambiguous.

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 per-action context (list returns a tree, add takes parent/position, remove refuses when items exist unless force:true), which is strong 'when to use this action' guidance. It does not, however, name any alternative tool or state when another sibling (e.g. modify_items, artboards) should be preferred, so it stops short of explicit when-not guidance.

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