Skip to main content
Glama

choose

Selects an option from custom or native dropdowns in one call by opening the control, waiting for the visible text, scrolling it into view, and clicking it.

Instructions

Pick from a custom dropdown in one call: clicks ref to open it, waits for the option with this text to appear, scrolls it into view and clicks it. Works for native too.

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": "<option>"
    },
    "name": "choose"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from the latest snapshot, e.g. e12 or f1e5
tabNoTab id. Default: your own target tab (each agent session gets its own)
findNoInstead of ref: the role and name as the snapshot shows them, e.g. {role:"button", name:"Save"}; nth:2 picks the second match. Survives reloads and new sessions, so recipes use it
forceNo
optionYesVisible text of the item to pick
browserNochrome, edge, ... (only when several browsers are connected)
snapshotNoDefault returns a diff of what changed. true = full snapshot, false = nothing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does explain the internal sequence (click ref to open, wait for option text, scroll into view, click). However it says nothing about what happens when the option never appears (timeout vs error), whether it retries, or what the caller should do on failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Two tight sentences: the first explains the one-call behavior, the second disambiguates the native select case. The useful detail is front-loaded and nothing is wasted.

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?

For a 7-parameter tool with a nested `find` object and no output schema, the description plus the high-coverage schema give an agent enough to call it correctly. The remaining gap is failure/timeout behavior, which matters for a tool that waits on an element to appear.

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 description coverage is 86%, so the schema already documents ref, tab, find, browser, option, and snapshot in useful detail. The description's only added parameter meaning is tying `option` to "visible text of the item", which the schema essentially states too, so baseline 3 applies.

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 and resource ("Pick from a custom dropdown") and clarifies that it also handles native <select>, which helps separate it from the plain click/select siblings. It stops short of naming those siblings explicitly, so the boundary is inferred rather than stated.

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?

The description implies when to reach for it (dropdown selection that would otherwise take several calls) but never says when not to use it or which alternative to prefer. With a `select` sibling in the catalog, the overlap created by "Works for native <select> too" is left unresolved.

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