Skip to main content
Glama

select_option

Select options in a dropdown by value or visible text. Use it to set a form field when clicking alone cannot choose the intended choice.

Instructions

在下拉框()中选择选项,可按选项的值或文字选择。

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": {
      "ref": "<ref>",
      "values": "<values>"
    },
    "name": "select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes目标元素的 ref(来自 snapshot,如 e12)
valuesYes要选中的选项(value 或显示文字)
elementNo元素的简短描述(仅用于日志,便于人工排查)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a mutating (readOnlyHint=false) and open-world operation, so the safety profile is covered. The description adds that matching can be by value or visible text, but says nothing about what happens if no option matches, whether multiple values imply multi-select, or how the page reacts afterward.

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?

A single front-loaded sentence that names the target element type first, then the selection modes. No filler or redundant restatement of the tool name.

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

Completeness3/5

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

All three parameters are fully documented in the schema and no output schema exists, so little is required. However, for a mutating browser action, the description leaves out failure behavior and multi-value semantics, which an agent would need to call it confidently.

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 100%, so the baseline is 3, and the description still adds useful meaning by clarifying that each entry in 'values' can be either the underlying value or the display text, which is a semantically important distinction for callers.

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?

The description states a specific verb and resource: select an option inside a <select> dropdown, and adds that selection may be by option value or display text. This clearly separates it from click/type siblings that operate on arbitrary elements, though it does not explicitly name those siblings.

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 only implied by the phrase 'in a <select> dropdown', which tells the agent this is for select elements rather than generic clicks, but there is no explicit when-to-use/when-not or a named alternative such as click or type.

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