Skip to main content
Glama

List an app's menu commands

ui_list_menus

Lists every menu bar command path for an app, flagging disabled items so you can find features that lack a scripting interface. Expand submenu depth or filter to one menu.

Instructions

List every command in an app's menu bar as paths like "File > Export To > PDF…", marking disabled ones. This is how to discover expert features that have no scripting interface (e.g. Final Cut's Transcribe to Captions or Beat Detection, Logic's Chord ID, Keynote's Generate Slides from Text). Paths ending in ">" have submenus; raise depth or pass menu to see deeper. Some items only enable with a selection or an open document.

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": {
      "app": "<app>"
    },
    "name": "ui_list_menus"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesApp to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path
menuNoOnly this top-level menu, e.g. "Modify"
depthNoSubmenu levels to expand
outFileNoWrite the map here, one path per line, and return only the count. Then grep the file instead of reading the whole map into the conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=false and openWorldHint=false, so the description does real work: it discloses that disabled items are marked, that paths ending in ">" denote unexpanded submenus, and that outFile changes the return value to a bare count. That return-shape change is a non-obvious behavior an agent would otherwise miss. It does not cover output size limits, latency, or permission requirements, keeping it off a 5.

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?

Front-loaded with the core action and output format before the discovery rationale and parameter tips. Every sentence carries information, though the triple of app-specific examples is the most compressible part of the text.

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?

There is no output schema, yet the description covers the return shape (menu paths, disabled markers, submenu markers, count-only mode under outFile), the required app parameter's accepted values via schema, and the situational caveats. Nothing an agent needs to call this correctly is missing.

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 100%, so the baseline would be 3, but the description adds genuine meaning: the depth parameter is explained through the trailing-">" convention, and outFile is framed as a workflow (write then grep) rather than a plain path. The menu parameter's effect is implied by "pass menu to see deeper" rather than spelled out.

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 ("List every command in an app's menu bar") plus the exact output form (paths like "File > Export To > PDF…"). The enumeration/read semantics make it obviously distinct from the sibling ui_click_menu, so an agent can route between them without opening either schema.

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 clear when-to-use rule: this is the discovery path for expert features that lack a scripting interface, with named examples (Transcribe to Captions, Beat Detection, Chord ID). It also explains when to expand ("raise depth or pass menu to see deeper") and the caveat that items may only enable with a selection or open document. It stops short of naming a competing tool or stating when not to use it.

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