Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Select a dropdown/<select> option reliably

select_option

Select an option from a dropdown by its visible text, avoiding wrong picks when native select options share one coordinate. Verifies the chosen value and returns a screenshot when uncertain.

Instructions

Select an option from a dropdown (combo box). Use this instead of click_element for dropdowns — some dropdowns are native browser popups whose options are ALL reported at the exact same coordinate by the accessibility tree (a known Chromium/AT-SPI limitation for virtualized native selects), which makes clicking by coordinate silently select the WRONG option. This tool detects that case automatically and falls back to type-ahead (typing the option text at a realistic pace) instead of guessing a click position — position-independent, so it doesn't matter what was previously selected. It then reads the dropdown back: the result says [verified: …] when the chosen option reports selected, FAILED when a different one does, and otherwise returns a cropped screenshot to check before trusting the selection.

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": {
      "option_text": "<option_text>"
    },
    "name": "select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
combo_refNo
combo_roleNocombo box
combo_textNoAccessible name of the dropdown, e.g. 'State'.
option_textYesExact visible text of the option to select, e.g. 'California'.
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: it discloses the coordinate-collision failure mode, the type-ahead fallback at "a realistic pace," position independence, and the read-back verification outcomes ([verified:], FAILED, cropped screenshot). That is exactly the behavioral context an agent needs before trusting a click.

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-loads the what and the why-click_element-is-wrong before the fallback and verification details, and nearly every clause adds information. It runs long as a single dense paragraph and could be split for scannability, but there is little pure filler.

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?

With no output schema and no annotations, the description does the heavy lifting on return values by enumerating the three verification outcomes and the screenshot fallback. The remaining hole is input-side: the selector parameters are unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Four of five parameters are undocumented in the description: combo_ref, combo_role, combo_text and window_address are never mentioned, and only option_text is implied via "typing the option text." With schema coverage at 40%, the description should clarify how the dropdown is identified (reference vs. accessible name) but leaves the agent to guess from the schema.

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 ("Select an option from a dropdown (combo box)") and immediately distinguishes itself from the sibling click_element, explaining the exact failure mode of the alternative. An agent can pick this tool over click_element 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 Guidelines5/5

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

Explicitly says to use this "instead of click_element for dropdowns" and names the condition (native <select> popups whose options share one coordinate) that forces it. It also states the tool auto-detects the case and falls back, so the agent does not need to decide between two modes.

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