Skip to main content
Glama

browser_select_option

Destructive

Selects an option in a dropdown by visible label or value, using real interaction instead of simulated clicks or value assignment. Supports iframe targeting.

Instructions

Choose an option in a dropdown (<select>), by its visible label or by its value.

Use this rather than clicking the dropdown and pressing arrow keys: a click plus arrows cannot tell you which row it landed on, and setting the value through browser_evaluate changes it without the page seeing a real interaction. Inside an iframe, pass the snapshot's frame.

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": {
      "selector": "<selector>",
      "value": "<value>"
    },
    "name": "browser_select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameNo
valueYes
browserNoDefaults to `main`; `support` is the helper beside it.
selectorYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.74.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare openWorldHint and destructiveHint, so the bar is lower, and the description adds real behavioral context the annotations cannot: this performs a genuine page interaction that the page observes, unlike a synthetic value assignment. It still does not explain the destructive risk (e.g. that the change event may trigger form submission or navigation) or what the response contains, leaving the destructiveHint unexplained.

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?

Four short sentences, front-loaded with the action, then the alternative-routing rule, then the iframe caveat; no filler, no restatement of the name or title.

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?

An output schema exists so return values need not be described, and the description covers the action, the correct alternative, and iframe handling. It stops short of covering what side effects follow a selection or how the selector is formed, which matters for a tool flagged destructive.

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 only 25%, so the description must compensate. It does clarify that `value` may be a visible label or the underlying value and that `frame` should be the snapshot's frame token inside an iframe, but `selector` is never characterised (selector syntax/ref format is left entirely to the agent) and `browser` is only covered by the schema itself.

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 ('Choose an option in a dropdown (`<select>`)') plus the two accepted addressing modes (visible label or value), which immediately separates it from generic interaction tools like browser_click or browser_evaluate.

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 names the two inferior alternatives (click plus arrow keys, and setting the value through browser_evaluate) and states the concrete failure mode of each: arrow keys give no row confirmation, and evaluate bypasses real page interaction. That is a when-to-use / when-not-to-use rule an agent can act on directly.

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