Skip to main content
Glama
Chandelier

Chandelier

by acidka

selection

Read, set, add, remove, or clear currently chosen objects in the active document; list top-level items by layer or artboard with counts and fields.

Instructions

Read or change the selection in the active document. action: "get" (default) | "set" (refs) | "add" (refs) | "remove" (refs) | "clear" | "all" (top-level items; or only those on layer / artboard). Locked and hidden items are skipped (with a warning). Returns {count, items:[…fields]} (fields as in find_items, default uuid/type/name/box; limit default 50).

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

Input Schema

NameRequiredDescriptionDefault
refsNo
layerNo
limitNo
actionNo
fieldsNo
artboardNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.9/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 disclose non-obvious behavior: locked and hidden items are skipped with a warning, and the return shape {count, items} with a default limit of 50 is stated. It omits whether mutations are undoable and how invalid refs are handled, which are meaningful gaps for a tool that can clear or remove selection.

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?

The definition is front-loaded with the purpose, then proceeds through action modes and return behavior in a compact block with no filler sentences. The trailing sentence is dense and run-on, packing return shape, field defaults, and limit together, which slightly hurts scanability.

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 6-parameter tool with no annotations and no output schema, the description covers action semantics, a summary of the return payload, field defaults, and the notable locked/hidden skipping behavior. Remaining gaps around refs format and mutation error/undo behavior keep it from fully complete.

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 0%, so the description must compensate; it usefully maps action values to the parameters they consume (refs for set/add/remove, layer/artboard filtering for 'all'), documents the fields vocabulary by reference to find_items, and states limit's default. However refs' format (uuid vs index) and the meaning of layer/artboard scoping remain undocumented, leaving key parameters underspecified.

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 gives a specific verb+resource pair ('Read or change the selection in the active document') and then enumerates every action mode, so an agent knows exactly what the tool covers. It does not explicitly contrast itself with siblings such as get_items, modify_items, or find_items (find_items is referenced only for field format), which keeps it from a 5.

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?

Each action is annotated with what it requires ('set' (refs), 'all' (top-level items; or only those on layer / artboard)) and the default is stated ('get' default), which gives clear usage context per mode. It stops short of saying when to prefer this tool over get_items/modify_items, so exclusions and alternatives are absent.

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