Skip to main content
Glama

Find menu command ids

find_menu_command
Read-only

Look up After Effects menu command IDs from exact English menu text using app.findMenuCommandId, returning 0 when no match is found. Read-only.

Instructions

Look up After Effects menu command ids by exact English menu text (app.findMenuCommandId), e.g. 'Deselect All' -> 2004. Returns id 0 when not found. Note: 'Undo' resolves to Edit > Purge > Undo, not Edit > Undo (use the undo tool). Read-only.

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": {
      "names": "<names>"
    },
    "name": "find_menu_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesYesMenu item texts exactly as shown in the English UI, e.g. ['Deselect All', 'Select All'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, so 'Read-only' in the text is redundant. The genuinely additive parts are the not-found sentinel ('Returns id 0 when not found') and the Undo resolution caveat, both of which change how an agent interprets results. It still does not describe the result shape for a multi-name array.

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 compact sentences, front-loaded with purpose, then the return convention, then the routing caveat. Nothing is padded or repeated unnecessarily.

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 one-parameter read tool with no output schema, it covers purpose, the not-found sentinel, and a known misresolution. The one remaining gap is how multiple names map to results (list vs. single id), which an agent cannot infer without an output schema.

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% and the single parameter's description already specifies exact English UI text with an example list. The description's restatement of 'exact English menu text' with a different example adds little beyond the schema, so baseline 3 applies.

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 ('look up After Effects menu command ids') plus the exact API it wraps (app.findMenuCommandId) and an input/output example. It is clearly a read-only resolver, distinct from tools that execute menu commands.

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?

Gives a concrete routing rule for a known trap ('Undo' resolves to Edit > Purge > Undo, use the undo tool) and implies the tool is used before acting on a command id. It does not explicitly say when not to use it, e.g. that it only resolves ids and never executes them.

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

Deploy Server

Other Tools