Skip to main content
Glama

選択肢を選ぶ

select_option

Selects a dropdown option by value using a CSS selector to support reliable form interaction during accessibility checks.

Instructions

select 要素の選択肢を 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": {
      "selector": "<selector>",
      "value": "<value>"
    },
    "name": "select_option"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
selectorYes対象要素の CSS セレクタ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not say whether the selection fires change/input events, whether it fails or silently no-ops when the value is absent, how multi-select elements are handled, or what the tool reports back. For a DOM-mutating automation tool this leaves the agent guessing about failure modes.

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 short clause with no filler, and the action plus its discriminator (value) are front-loaded. It is arguably over-terse rather than padded, but nothing in it is wasted.

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?

With no annotations, no output schema, and one of two parameters undocumented in the schema, the description should cover selection semantics and failure behavior; it covers neither. An agent knows what the tool nominally does but not how it behaves when the option is missing or how the result is confirmed.

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 coverage is 50% (only selector is documented as a CSS selector). The description partially compensates by clarifying that 'value' means the option's value rather than its visible label — a genuinely useful distinction — but it does not say whether label text is also acceptable or whether the value must match exactly.

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?

States a specific verb (選ぶ/select) and a specific resource (select 要素の選択肢), plus the addressing key (value). This is clearly a dropdown-option action rather than a generic click, so an agent can distinguish it from click and type_text, though it never names those siblings explicitly.

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 'select 要素' — an agent can infer this applies to native <select> elements and not checkboxes (set_checked) or arbitrary clicks. There is no explicit when-to-use, no when-not-to-use, and no mention of what to do for custom/non-native dropdowns.

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