Skip to main content
Glama
computer
by zznabil

Select menu command

menu_select
Destructive

Select an enabled, unambiguous native menu command by its path within a target window, desktop, or display; missing, disabled, or ambiguous paths fail.

Instructions

Select an enabled, unambiguous native menu command, e.g. ["File", "Export…"]. Missing, disabled or ambiguous paths fail. On Windows, the server takes over for a foreground-only command when permitted.

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>",
      "path": "<path>"
    },
    "name": "menu_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesMenu path.
targetYesWindow id from list_windows (a "window:<id>" prefix is accepted), "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • changedInput schema / properties / target / description
      Previous value: -"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"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."New value: +"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"desktop\", or \"display:<id>\" / \"display:active\" / \"display:all\". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard."
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / target / description
      Previous value: -"Window 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."New value: +"Window id from list_windows (a \"window:<id>\" prefix is accepted), \"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."
  3. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructive=true and openWorld=true; the description adds real value beyond that by disclosing failure semantics and a platform-specific behavior where the server takes over a foreground-only command on Windows. It still omits what happens on success (whether the command executes immediately or only opens a submenu) and any permission prerequisites.

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?

Three tight sentences, front-loaded with verb and resource, then an example, then failure and platform notes. No filler, though the Windows clause is terse enough to be slightly cryptic on first read.

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 only two parameters and rich annotations, the main gaps are post-invocation behavior (does selecting execute the command, and what is returned with no output schema?) and how to obtain valid menu paths. Adequate but leaves the agent guessing on the most consequential side effects.

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%, so the schema already documents both parameters in detail, including target scoping guidance. The description contributes the example array format and the notion that paths must resolve uniquely, but adds little beyond the schema's own 'Menu path' wording.

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 plus resource ('Select an enabled, unambiguous native menu command') and gives a concrete path example, so the agent knows it targets native menus rather than DOM/AX elements. It does not distinguish itself from siblings such as menu_items or click, leaving the boundary to inference.

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?

Implies usage conditions via 'enabled, unambiguous' and lists failure cases (missing, disabled, ambiguous), which is useful pre-call guidance. However, it never says how to discover valid paths (e.g. via menu_items) or when to prefer this over keyboard/click alternatives.

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