Skip to main content
Glama
Christancho-co

illustrator-mcp

Run raw ExtendScript in Illustrator

illustrator_run_script

Run custom ExtendScript in Adobe Illustrator to automate actions not covered by standard tools. Returns the script's last expression as a string for direct results.

Instructions

Executes arbitrary ExtendScript (Illustrator's JS-based scripting language, roughly ES3) inside the running Illustrator instance. Use this for anything the other tools don't cover directly. The value of the last expression in the script is returned as a string (end your script with a bare expression, e.g. a string, to return a result). Illustrator object model docs: app, app.documents, app.activeDocument, PathItem, TextFrame, RGBColor, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesExtendScript source code to run inside Illustrator.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the tool executes arbitrary code, notes the language is 'roughly ES3', and explains the return value behavior ('value of the last expression ... returned as a string'). It also lists relevant object model areas (app, documents, PathItem, etc.). While it doesn't warn about destructive side effects, 'arbitrary' and 'anything' convey broad capability. This is solid disclosure for an escape-hatch tool.

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 concise sentences cover action, usage, return semantics, and object model references. No filler or repetition. The most important information is front-loaded and every sentence earns its place.

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 tool with a single parameter and no output schema, the description is nearly complete: it explains what it does, when to use, and how to get results. The only gap is error handling or exception behavior, but that's a minor omission for an arbitrary-code tool. The object model docs reference further helps the agent craft scripts without external lookup.

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 100%: the 'script' parameter is described as 'ExtendScript source code to run inside Illustrator.' The tool description adds value beyond the schema by explaining how to produce a return value ('end your script with a bare expression') and providing context about the language (ES3) and the object model. This exceeds the baseline for high schema coverage.

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 clearly states the action ('Executes arbitrary ExtendScript') and the resource (Illustrator's scripting language, 'inside the running Illustrator instance'). It explicitly distinguishes itself from siblings with 'Use this for anything the other tools don't cover directly', making its role as a catch-all tool unambiguous.

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?

It gives explicit usage guidance: 'Use this for anything the other tools don't cover directly.' This tells the agent when to choose this tool over sibling tools and implicitly when not to use it (when a specific tool covers the task).

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/Christancho-co/illustrator-mcp'

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