Skip to main content
Glama

select-option

Choose a native dropdown option by label or value to complete form selections during browser automation.

Instructions

Choose an option in a native dropdown using its label or value.

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": {
      "pageId": "<pageId>",
      "selector": "<selector>",
      "option": "<option>"
    },
    "name": "select-option"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionYes
pageIdYes
timeoutNoMaximum action time in milliseconds. Use 0 for no timeout.
selectorYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden for a state-mutating interaction. It says nothing about whether the option must already be present in the DOM, whether change/blur events fire, what error surfaces if the label/value doesn't match, or whether the dropdown must be opened first.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though the brevity borders on under-specification given the tool's five parameters and mutation semantics.

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 five-parameter, three-required interaction tool with no annotations, no output schema, and 40% coverage, the description is too thin. An agent cannot tell from it how failures are reported, whether the action waits for the option, or how the selector should be pointed at the dropdown versus the option.

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?

With only 40% schema coverage, the description should compensate, but it only echoes the schema's label-or-value option shape. It adds nothing about selector matching modes (label/role/ref), why pageId or snapshotId/ref pairing matters, or timeout behavior.

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?

"Choose an option in a native dropdown" gives a specific verb plus resource, and "native" implicitly scopes it to real <select>-style controls rather than custom widgets. It does not name a sibling, so an agent must infer the boundary with click/fill, but the action itself is unambiguous.

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 word "native" implies this is for real dropdown elements and that custom/ARIA listboxes would need click instead, which is useful implied guidance. There is no explicit when-to-use, no prerequisite (element must be visible/enabled), and no named alternative.

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