Skip to main content
Glama

browser_select

Selects an option in a native HTML by value, exact visible label, or index, firing input and change events so frameworks detect the update. Use click interactions for custom dropdowns.

Instructions

Choose an option in a native by value, exact visible label, or index. Fires input and change, so frameworks notice. For a custom dropdown (button + list) use browser_click twice instead — the error says so if you try.

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": {
      "ref": "<ref>",
      "values": "<values>"
    },
    "name": "browser_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef of the <select> (e12), or a CSS selector
valuesYesOption value, exact label, or index — one entry per choice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.5.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a genuinely useful side effect — input and change events fire, so frameworks notice — but omits other behaviors relevant to a browser tool: whether it waits for the option to appear, what happens on a non-matching value besides the error, timing/retry behavior, and whether a returned ref/state is produced.

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?

Three tight sentences with no filler: capability first, side effect second, fallback third. The most decision-relevant constraint (native select vs custom dropdown) is front-loaded before an agent would commit to the wrong tool.

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 two-required-parameter tool with no output schema and no annotations, it covers the essentials: matching modes, event side effects, the sibling alternative, and error signaling. Minor gaps remain around waiting/retry behavior and what value, if any, is returned on success.

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 100%, and the schema already spells out "Option value, exact label, or index — one entry per choice" for values and ref format (e12) for ref. The description largely restates those modes rather than adding new meaning such as exact-match vs substring semantics or multi-select expectations.

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 ("Choose an option") plus the exact resource (a native <select>) and the three accepted matching modes (value, exact visible label, index). It also explicitly contrasts itself with the custom-dropdown case handled by browser_click, so an agent can distinguish it from siblings without reading any 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?

Gives an explicit when-not plus the alternative: for a custom dropdown (button + list) use browser_click twice instead. It even notes the failure mode self-documents via the error text, so an agent has a recovery path if it picks the wrong tool.

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