Skip to main content
Glama
Chandelier

Chandelier

by acidka

menu_command

Execute an Illustrator menu command by internal name to access actions lacking dedicated tools; applies refs first, then returns the selection.

Instructions

Escape hatch: run an Illustrator menu command by its internal name (app.executeMenuCommand), e.g. "group", "expandStyle", "Live Pathfinder Add", "OffsetPath v22" (outline stroke), "selectall", "deselectall". refs are selected first. Returns the selection afterwards. WARNING: commands that open a dialog block Illustrator until someone closes it — prefer the dedicated tools.

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": {
      "command": "<command>"
    },
    "name": "menu_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
refsNo
commandYes

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 behavioral burden and does most of it: it discloses that refs get selected first, that the selection is returned afterwards, and warns that dialog-opening commands block Illustrator until dismissed. It does not cover failure behavior for invalid command names or whether the command is undoable.

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?

Front-loads the core action, then examples, then the refs/return behavior, then the blocking warning — highest-risk information still visible in the first two sentences. No filler; every clause carries information an agent needs.

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?

No output schema exists, but the description still states the post-condition (selection is returned). For a two-parameter escape hatch with a blocking-behavior warning, this is nearly complete; only failure modes and the omitted-refs default are absent.

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 0%, so the description must compensate, and it does for both parameters: command is defined as an internal menu-command name with four examples including a format hint ("OffsetPath v22"), and refs is explained as being selected before the command runs. It never states what happens when refs is omitted or whether command names are case-sensitive.

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?

States a specific verb and resource ("run an Illustrator menu command by its internal name") and even names the underlying API call app.executeMenuCommand. Concrete examples ("group", "expandStyle", "OffsetPath v22", "selectall") make it immediately distinguishable from the dedicated sibling tools.

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?

Labels itself an "escape hatch" and explicitly says to "prefer the dedicated tools", which is a clear when-to-use and when-not-to-use signal. It stops short of naming which sibling to use for any given common command, leaving the agent to infer the mapping.

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