Skip to main content
Glama
anananaTERRA

mcp-indesign-agent

by anananaTERRA

execute_batch

Combine multiple InDesign editing operations into one atomic batch with automatic checkpointing, reducing round-trips and enabling rollback in a single undo step.

Instructions

Preferred mutation path: resolve targets → checkpoint gate → one dispatcher round-trip inside a single ENTIRE_SCRIPT undo transaction → modelPatch on cache. ALWAYS prefer this over execute_operation / layout_operation when combining ops. Mutating batches need an on-disk checkpoint for the current generation; the server takes one automatically and refuses the batch if saving it fails. Typical flow: scan_document → (analyze_page) → execute_batch → summarize_changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandsYesBatch commands (prefer ONE execute_batch over many tools). Ops: checkpoint, move, resize, delete, duplicate, createTextFrame, setText, replaceText, setFont, setFill, align, distribute, center, stack, applyMargins, applyStyle, createStyle, updateStyle, relinkAsset, replaceAsset, embedAsset. checkpoint: {op:'checkpoint', tag?, keep?} saves an .indd copy to _checkpoints/ and runs before the undo transaction. createTextFrame: {op, x,y,width,height,text?} or {op, below:{role|uuid|selection}, gapPt?, text?}. Geometry in points. Requires prior scan_document (and analyze_page for role targets).
timeoutSecNo
checkpointTagNoShort reason for the automatic checkpoint filename
skipCheckpointNoMutate with no way back. Only when you deliberately accept that a bad edit cannot be rolled back (default false).
transactionNameNoLabel for the single undo step in InDesign (forced to ASCII)
captureAfterSnapshotNoCapture snapshot after (default true)
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It discloses the single undo transaction, automatic on-disk checkpoint, refusal when checkpoint saving fails, and cache update via modelPatch. It also explains the 'no way back' implication of skipCheckpoint. This is rich, non-obvious behavior clearly surfaced.

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 description is compact—three sentences—and front-loads the key 'preferred mutation path' concept. It is dense with jargon (ENTIRE_SCRIPT, modelPatch, dispatcher round-trip) which may reduce readability, but every sentence earns its place by adding workflow, alternative guidance, or flow context. It could be more scannable with a brief plain-language opener.

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 complex mutation tool with no output schema, the description covers prerequisites, process, safety gate, alternatives, and typical next step (summarize_changes). It does not state what the tool returns or how success/errors are surfaced beyond the checkpoint refusal, which is a notable gap. Because of the rich context provided, it remains highly complete overall.

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 high (83%), so the baseline is 3, and the schema already documents commands, timeoutSec, checkpointTag, skipCheckpoint, and transactionName well. The description adds workflow context by prescribing 'resolve targets → checkpoint gate' and noting the need for prior scan_document/analyze_page for role targets, which slightly enhances command parameter semantics. It doesn't add detail beyond the schema for other parameters.

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 clearly positions execute_batch as the 'Preferred mutation path' and explicitly contrasts it with execute_operation/layout_operation, distinguishing its role as the batch-level tool. It never states the simple phrase 'executes a batch of commands,' but the typical flow and the mention of 'combining ops' make the purpose evident. A direct verb+object statement would push this to 5.

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

Usage Guidelines5/5

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

The description gives explicit usage guidance: 'ALWAYS prefer this over execute_operation / layout_operation when combining ops' and provides a concrete typical flow. It also defines a key prerequisite for mutating batches (automatic checkpoint) and warns via skipCheckpoint when rollback is intentionally sacrificed. This is exemplary when-to-use and when-to-be-careful guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anananaTERRA/mcp-indesign-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server