Skip to main content
Glama
browser-mcp-server

browser-mcp-server

by vicktor12

browser_wait_for

Waits for a page element to become visible, hidden, attached, or detached, or for specified text to appear. Use it after actions that trigger asynchronous loads to synchronize browser automation.

Instructions

Aguarda um elemento aparecer, desaparecer ou um texto surgir na página. Útil após ações que disparam carregamentos assíncronos.

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": {
      "task_description": "<task_description>"
    },
    "name": "browser_wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
stateNovisible
timeoutNoms; default BROWSER_TIMEOUT
selectorNo
task_descriptionYesDeve conter [AGENT-BROWSER-TASK] + descrição da ação

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It never states whether the wait is blocking, what happens when the timeout expires (error vs. returning a negative result), or whether the call is read-only and side-effect free — all critical for an agent deciding to spend up to BROWSER_TIMEOUT milliseconds on it.

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?

Two tight sentences with the core action front-loaded and the usage hint immediately after. No filler or repetition 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?

For a five-parameter, no-annotation, no-output-schema tool, the description is only marginally sufficient. An agent still cannot predict the failure mode on timeout or what a successful wait returns, which are the two facts most likely to change how it is invoked.

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 only 40%, so the description must compensate. It does partly: 'aparecer, desaparecer' maps meaningfully onto the visible/hidden/detached states and 'elemento/texto' distinguishes the selector and text parameters. But the required task_description parameter and its [AGENT-BROWSER-TASK] convention, plus timeout behavior, are left entirely to the schema.

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 names a specific verb (aguarda/waits) and the exact conditions it waits on: an element appearing, disappearing, or text showing up. That is clearly distinct from siblings like browser_click or browser_read_page, though it never names those siblings explicitly to reinforce the contrast.

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?

The clause 'Útil após ações que disparam carregamentos assíncronos' gives a genuine when-to-use context, which is more than nothing. However, it offers no exclusions (e.g., when to prefer browser_read_page) and no guidance on choosing between the text, selector, and state parameters for a given wait scenario.

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