Skip to main content
Glama
computer
by zznabil

Select menu command

menu_select
Destructive

Selects an enabled native menu command by path for a window, desktop, or display; rejects missing, disabled, or ambiguous menu paths.

Instructions

Select an enabled, unambiguous native menu command, e.g. ["File", "Export…"]. Missing/disabled/ambiguous paths fail.

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, "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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuine failure semantics (missing, disabled, ambiguous paths all error) but says nothing about what happens on success — e.g. whether the command executes immediately, whether it persists to config, or whether it 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences, front-loaded with the action and the path example, with the failure clause last. Nothing is wasted, though it is arguably too spare for a tool with a non-trivial target-selection parameter.

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?

For a simple two-parameter tool with a complete schema and full annotations, the core is present, but the description never touches the highest-risk aspect of this tool — that `target: desktop/display:*` drives the user's real pointer and keyboard while a window id runs in the background — nor what success returns. No output schema exists, so a sentence on the result would have helped.

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 both parameters are documented, and the schema's `target` description is considerably richer than anything in the tool description (background vs. real pointer/keyboard). The description's only added meaning is the example array showing one string per menu level, which is useful but modest.

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?

Specific verb ('select') plus resource ('native menu command') with a concrete example path ["File", "Export…"] that shows the path is hierarchical. It does not explicitly differentiate itself from sibling `menu_items`, so the boundary with the tool that presumably enumerates menus is left 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?

Usage is implied rather than stated: 'Missing/disabled/ambiguous paths fail' hints that the path must already exist and be unique, which suggests enumerating via `menu_items` first, but no alternative tool or pre-condition is named. There is no explicit when-not-to-use guidance.

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