Skip to main content
Glama
Chandelier

Chandelier

by acidka

data_merge

Fill an Illustrator template once per data row from CSV/JSON to generate variable certificates, labels, badges, or cards as artboards, grids, or exported files.

Instructions

Variable data (certificates, badges, labels, cards): fill a template once per data row. Template: the items on artboard (default 0) or refs. "{{field}}" inside any text is replaced, keeping its style. An item NAMED "{{field}}" takes the whole value: text → contents, linked image → relinked (file path, fit in its box), symbol → symbol name, shape → fill colour; NAMED "{{?field}}" → shown only if the value is non-empty (not 0/false/no). Data: data (.csv/.tsv/.json file; relative image paths resolve from its folder) or rows [{field: value}]; offset, limit. mode: "artboards" (default: one new artboard per row; columns, spacing) · "grid" (n-up: grid {cols, rows, dx, dy} copies per new artboard, the first where the template sits) · "files" (one export per row: export {format, path with {field}/{n} tokens, …export args}; the document is left unchanged). name: artboard name pattern (default "{n}"). remove_template:true deletes the template and its artboard at the end. dry_run:true → template fields vs data columns; nothing changes.

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

Input Schema

NameRequiredDescriptionDefault
dataNo
gridNo
modeNo
nameNo
refsNo
rowsNo
limitNo
exportNo
offsetNo
columnsNo
dry_runNo
spacingNo
artboardNo
remove_templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavior burden, and it does disclose key side effects: files mode leaves the document unchanged, remove_template deletes the template and its artboard, dry_run changes nothing. It does not disclose prerequisites (must a document/artboard be open), undo/rollback behavior, or limits such as the 10,000-row cap. Useful, but not complete for an unannotated mutating tool.

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?

Information is front-loaded by concept (purpose, template placeholders, data, mode, output naming, flags) with labeled segments that make scanning easy. The telegraphic punctuation style (· separators, inline brace lists) is dense and occasionally hard to parse, but virtually no sentence is redundant.

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, nested-object tool with no annotations and no output schema, the description covers inputs, mode semantics, and destructive side effects well enough to call it correctly. Gaps are the undocumented export argument surface and the absence of any statement about what the tool returns or how errors surface.

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 0%, so the description is the only semantic source, and it touches nearly every one of the 14 parameters: data sources, rows, offset/limit, template artboard, refs, name pattern, columns/spacing, grid dimensions, export tokens, and the two flags. Weaknesses remain: "...export args" is undefined, refs' accepted shape is not clarified, and units for spacing/dx/dy are unstated.

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 opening states a specific verb and resource: "fill a template once per data row," with concrete examples of variable data (certificates, badges, labels, cards). It also names the template source (artboard or refs) and the placeholder mechanism, so the agent can distinguish this from generic document/artboard tools. It stops short of naming a sibling it is not, which keeps it at 4 rather than 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?

Mode selection is well covered: "artboards" default vs "grid" n-up vs "files" (one export per row, document unchanged), plus dry_run for a fields-vs-columns check. This tells an agent which mode to pick for which outcome. There is no explicit exclusion or pointer to a sibling tool for related tasks such as plain batch export.

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