Skip to main content
Glama
InDesign MCP

InDesign MCP

indesign_run_trusted_script

Destructive

Run a user-approved .jsx file from the trusted script directory to execute local InDesign automation after explicit confirmation; only relative paths are accepted.

Instructions

Run one user-approved .jsx file beneath INDESIGN_TRUSTED_SCRIPT_DIR. Only relative paths are accepted. This executes trusted local InDesign code, which can change documents, files, and preferences; it never starts a new InDesign instance. Call only after the user explicitly approves the specific script.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "script_path": "<script_path>",
      "confirm": "<confirm>"
    },
    "name": "indesign_run_trusted_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesSet true only after the user explicitly approves running this specific JSX file.
script_pathYesRelative .jsx path beneath the configured trusted script folder; traversal and absolute paths are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description goes well beyond them: it names what can change (documents, files, preferences), clarifies that no new InDesign instance is started, and enforces the trusted-directory boundary plus a user-approval gate. That is meaningful behavioral context an agent could not infer from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the highest-risk information (trusted code execution, path restriction) front-loaded and the approval requirement last. No sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two parameters, full schema coverage, and explicit destructive annotations, the description supplies everything an agent needs before invoking: the sandbox root, the path rule, the approval gate, and the blast radius. No output schema exists, so no return-value explanation is owed.

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 100%, so both parameters are already documented, including the confirm flag's approval semantics. The description reinforces the relative-path restriction and the trusted root, but adds no syntax or format detail beyond what the schema states, making the baseline 3 appropriate.

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?

The description opens with a specific verb and resource: 'Run one user-approved .jsx file beneath INDESIGN_TRUSTED_SCRIPT_DIR.' That single sentence separates this general script executor from the sibling tools that perform named, discrete operations such as export_pdf or create_document.

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?

It states a hard precondition for use ('Call only after the user explicitly approves the specific script') and a scoping rule ('Only relative paths are accepted'). It stops short of naming when a sibling tool should be preferred over raw script execution, so it is clear guidance without explicit alternatives.

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