Skip to main content
Glama

select

Choose an option in a native dropdown by value or visible text to set form choices during browser automation.

Instructions

Choose an option in a native by value or visible text.

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

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
valueYes
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

B3.2/5.0
Behavior2/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 it discharges almost none of it. It does not say whether selecting fires change/input events, whether it submits forms, whether it scrolls the option into view, or what happens when the text matches no option — all material for a state-mutating tool. Only a single sentence of behavior is offered against a 6-parameter surface.

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?

One front-loaded sentence with zero filler and the key qualifier ("native") placed early. It is efficient, though the brevity edges toward under-specification rather than tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a nested `find` object, ref/tab/browser targeting, a snapshot-mode toggle, and page-mutating effects, a single sentence is not enough. With no output schema and no annotations, the description should have explained event dispatch, failure on no-match, and how ref-based and find-based targeting interact.

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

Parameters4/5

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

Schema coverage is already high (83%) and the biggest gap — the bare, undocumented required `value` field — is clarified by "by value or visible text," telling the agent either the option's value attribute or its label works. It adds nothing about `ref` vs `find` precedence, `tab`, or `snapshot`, which the schema already covers.

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 concrete verb and target ("Choose an option in a native <select>") plus the selection key ("by value or visible text"). The "native <select>" qualifier is the real discriminator, but the description never names the sibling `choose` or explains how it differs, so an agent must infer which tool handles custom dropdowns.

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: "native <select>" hints this is for real HTML select elements and not custom ARIA listboxes, but there is no explicit when-to-use/when-not clause and no reference to the sibling tools (`choose`, `click`) that might cover adjacent cases.

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