Skip to main content
Glama
computer
by zznabil

List menu items

menu_items
Idempotent

Retrieves native menu-bar items for a window or a specific menu path, returning depth-first full paths to inspect available commands.

Instructions

Native menu-bar items of a window; with path, that menu's items (depth-first, full paths). Not read-only: on macOS reading a menu first makes its window key in its app (omp classifies it as exec).

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": {
      "target": "<target>"
    },
    "name": "menu_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoMenu path, e.g. ["File"].
targetYesWindow id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining WHY readOnlyHint is false: on macOS reading a menu first makes its window key in its app, so it is really an exec. That non-obvious side effect is exactly the kind of disclosure annotations cannot convey, and it is consistent with readOnlyHint=false and idempotentHint=true.

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?

Two tight clauses, front-loaded with the resource, then the path variant, then the behavioral caveat. The parenthetical "(omp classifies it as exec)" is jargon-ish but carries real information; nothing is padded.

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

Completeness3/5

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

With no output schema, the description should say roughly what comes back; "depth-first, full paths" hints at it but does not state the item shape (labels, shortcuts, enabled/checked state). For a 2-parameter tool with full schema coverage this is adequate but leaves a real gap.

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 is 3; the description still adds meaning by saying the path variant returns items depth-first with full paths, clarifying how path nesting is traversed. It does not restate the target parameter, which the schema already documents well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Native menu-bar items of a window") and clarifies the scoped variant ("with path, that menu's items"). It does not name or contrast with the sibling menu_select, so the reader must infer that selecting an item is a different tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Use is only implied by the conditional "with path, that menu's items" - an agent can infer that omitting path lists the menu bar and including path drills into one menu. There is no explicit when-to-use vs. when-not, and no pointer to menu_select for acting on an item.

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