Skip to main content
Glama
Chandelier

Chandelier

by acidka

swatches

Manage active-document color presets: add, update, import, recolor, convert, and clean up global, spot, process, and gradient colors for consistent print production.

Instructions

Swatches of the active document. kind: "global" (global process — edit once, every use updates; default for add) | "spot" | "process" (plain) | "gradient". action: "list" (kind, group filters) · "add" (name, color; updates the swatch if it exists, so batches can be re-run; gradient: type linear|radial, stops [{color, at 0-100, opacity, midpoint}]; group) · "update" (name → color / stops / new_name / group) · "remove" (name or names) · "clean_defaults" (remove the default process swatches, unused default gradients/patterns and empty groups; keeps [None], [Registration], global and spot swatches and "keep" names) · "import" (path: an .ase swatch library; kind and group override the file's) · "recolor" (refs? default all: every fill, stroke, text run and gradient stop → the nearest of to [swatch names, "group:Name"; default all global/spot] within tolerance (ΔE, default 20), or map {"cmyk(…)": "swatch:X"}; tints stay tints; dry_run → report only) → {colors [{from, to, de, uses}], unmatched} · "convert" (mode cmyk|rgb|gray through the colour profiles; refs, default all — then cmyk/rgb also switch the document mode). Use them as colours: "swatch:Name", "swatch:Name@50" (tint), "gradient:Name@45" (angle).

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

Input Schema

NameRequiredDescriptionDefault
toNo
mapNo
keepNo
kindNo
modeNo
nameNo
pathNo
refsNo
typeNo
colorNo
groupNo
limitNo
namesNo
stopsNo
actionNo
dry_runNo
new_nameNo
toleranceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.4/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 substantial work: it discloses that add overwrites an existing swatch, that clean_defaults preserves [None], [Registration], globals, spots and "keep" names, that tints survive recolor, that dry_run only reports, and that convert also switches the document colour mode. It stops short of stating permissions, reversibility of remove, or ordering/limit behavior.

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 resource, then organized by action with pipe and dot separators, and nearly every clause carries real information (defaults, units, side effects). It reads as a dense wall of text rather than a scannable list, which slightly hurts structure, but there is little genuine filler.

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 8-action, 18-parameter, nested-object tool with no output schema, the description is impressively complete — it even sketches recolor's return ({colors, unmatched}). Gaps: action is not a required parameter yet no default action is stated, limit is undocumented, and the list action's output shape is not described.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 18 parameters, so the description must compensate and largely does: it explains kind values, action values, the stops array shape (color, at 0-100, opacity, midpoint), tolerance as ΔE with default 20, refs scoping, map for explicit cmyk→swatch mapping, keep, new_name, and the swatch:/gradient: reference syntax. Only limit and the no-action default are left unexplained.

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 resource ("Swatches of the active document") and then defines every action verb it supports — list, add, update, remove, clean_defaults, import, recolor, convert — with the fields each one touches. An agent can tell this apart from siblings like styles or effects without opening the schema, since the domain and operations are both named explicitly.

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 per-action context that effectively tells the agent when to pick each mode: "default for add" for global kind, "default all" for recolor/convert refs, "dry_run → report only" for previewing, and "updates the swatch if it exists, so batches can be re-run" for add idempotence. What's missing is any explicit when-not-to-use or routing to a sibling (e.g. styles) — the guidance is contextual rather than exclusionary.

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