Skip to main content
Glama

Select Dropdown Option

gpm_browser_select

Select options in an HTML element by value or visible label during GPM browser automation, using a selector and optional profile ID.

Instructions

Chọn một hoặc nhiều option trong thẻ theo value hoặc label.

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>"
    },
    "name": "gpm_browser_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoNhãn hiển thị của option cần chọn
valueNoGiá trị attribute value cần chọn
selectorYesSelector của thẻ <select>
profile_idNoID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối)
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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, yet it omits key behaviors: whether the selection replaces or adds to existing selections, what happens for multi-select elements, what occurs if the option is not found, and how the timeout behaves. Only the phrase 'one or more' implies multi-option support.

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?

It is a single front-loaded sentence with no filler, so it is efficiently structured. However, the brevity comes at the cost of omitting behavior details that this no-annotation tool needs.

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 five parameters, no annotations, and no output schema, the description should explain error conditions, timeout defaults, profile_id behavior, and multi-select semantics. None of those are covered, so it is not complete enough for a browser-automation mutation tool.

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 80%, so the schema already documents selector, value, label, profile_id, and timeout_ms. The description adds only the value-vs-label selection concept, which the schema already conveys, so the baseline of 3 applies.

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 (select) and resource (an option inside a <select> tag), and names the two selection modes (value or label). This clearly separates it from siblings like gpm_browser_click or gpm_browser_type, though it does not explicitly call out those alternatives.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of when to prefer this over gpm_browser_click or gpm_browser_evaluate. The phrase 'by value or label' hints at parameter choice but not at situational usage.

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