Skip to main content
Glama

select_option

Choose an option in a dropdown by value, visible label, or zero-based index when typing into the field does nothing.

Instructions

Choose an option in a dropdown.

fill_field cannot do this — typing into a does nothing. Pick ONE of value / label / index:

value  matches the option's `value` attribute (most reliable)
label  matches the visible text
index  zero-based position

Args: selector: CSS selector for the element. value: The option's value attribute. label: The option's visible text. index: Zero-based option position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNo
labelNo
valueNo
selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that fill_field is ineffective here and ranks value as the most reliable matching strategy, but says nothing about failure behavior when no option matches, whether it waits for the select to populate, or whether it fires change events.

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?

Front-loads the purpose, then the sibling constraint, then the parameter manual — a sensible order with almost no filler. Slight redundancy in defining index both in the matching-strategy list and again under Args.

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 explained, and the description covers the key failure mode plus how to address an option. It omits prerequisites (e.g. that the page/select must already be loaded) and error semantics, which is a modest gap for a 4-parameter browser mutation.

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 description coverage is 0% and all four parameters are nullable anyOf with no descriptions, so the description must compensate — and it does, defining selector, value (matches the value attribute), label (visible text), and index (zero-based) with an explicit mutually-exclusive instruction. Only minor precision is missing, e.g. behavior when multiple of the three are supplied.

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 <select> dropdown') and explicitly distinguishes itself from the sibling fill_field, which handles other inputs but fails here. An agent can route between fill_field and select_option without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative that does not work ('fill_field cannot do this — typing into a <select> does nothing'), which is exactly the misuse an agent would otherwise attempt. It also gives a selection rule ('Pick ONE of value / label / index') but does not say when to prefer each strategy beyond calling value 'most reliable'.

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