Skip to main content
Glama
seleniumbase

SeleniumBase MCP

Official

select_option_by_index

Select a dropdown option by its zero-based index for reliable web automation. Raises an exception if the option or dropdown isn't found within the default timeout.

Instructions

Select a dropdown option by its 0-based index. Raises an exception if the element or option aren't found within the default timeout, which is 7 seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionYes
dropdown_selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses a key behavioral trait: it raises an exception if the element or option is not found within the default timeout of 7 seconds. Since no annotations are provided, this error/timeout information is essential and goes beyond the basic action; however, it does not detail other side effects or prerequisites.

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 sentences with no redundancy; the core action is front-loaded and the exception behavior is stated compactly.

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?

The description covers the action, the index semantics, and error/timeout behavior. It lacks explicit alternative routing and selector details, but for a simple tool with an output schema, it is mostly complete.

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?

The description only clarifies that 'option' is a 0-based index, which adds meaning to that parameter. It does not explain the format or semantics of 'dropdown_selector' beyond implying it identifies the <select> element. With 0% schema description coverage, this is only partial compensation.

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?

The description states a specific verb ('Select'), a specific resource ('a <select> dropdown option'), and the mode ('by its 0-based index'). This clearly distinguishes it from sibling tools like select_option_by_text and select_option_by_value.

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 the tool is for selecting a dropdown option based on its index, but it does not explicitly state when to choose this tool over the text/value-based alternatives or mention any prerequisites. There is no explicit when/when-not guidance, only the implied usage from the action.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seleniumbase/SeleniumBase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server