Skip to main content
Glama

select

Destructive

Choose an option in an HTML dropdown by matching its value attribute, not the visible label; check page state or element search to discover available values.

Instructions

[Agent Browser] Select an option in a dropdown by its value attribute. The value must match the 'value' attr of an , not the visible text. Use page_state() or find_elements() to discover available option values.

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

Input Schema

NameRequiredDescriptionDefault
valueYes
selectorYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds the practical failure mode that the value must equal the option's value attribute, but says nothing about whether change/input events fire, what happens if the option is absent, or whether the element must be visible first.

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 short sentences, zero filler, with the core constraint (value attribute, not visible text) front-loaded before the discovery hint. Nothing could be removed without losing meaning.

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 no explanation, and the description covers the essential operational constraint and discovery path. It is slightly incomplete on edge cases (missing option, event firing, visibility requirement) for a tool flagged destructive and non-idempotent.

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 0%, so the description carries the whole burden. It explains 'value' thoroughly (must match the option's value attr, not visible text) but leaves 'selector' completely undefined — no indication of CSS vs XPath syntax or whether it targets the <select> element. Partial compensation only.

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 gives a specific verb ('Select') plus the exact resource ('an option in a <select> dropdown') and narrows scope by the value attribute. It even explicitly rules out the most likely confusion — passing visible option text — which separates it from sibling tools like text and 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?

It gives a useful prerequisite workflow ('Use page_state() or find_elements() to discover available option values'), but offers no guidance on when to use this versus fill, click, or click_nth, nor any when-not conditions. The guidance is about preparation, not tool selection.

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