Skip to main content
Glama

wait_for

Waits until browser conditions are met, such as text or selector appearing/disappearing, URL content, JavaScript expression, or network idle, so actions run only when the page is ready.

Instructions

Espera una condición. Combina text, textGone, selector, selectorGone, urlContains y expression; networkIdle va solo.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
tabIdNoPestaña objetivo. Por defecto la pestaña actual del agente.
selectorNo
textGoneNo
timeoutMsNo
expressionNo
networkIdleNo
urlContainsNo
selectorGoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. The combinability rule for condition params is genuinely useful behavioral context, but it omits what happens on timeout (throw/return), whether this is a blocking read-only operation, and default timeout behavior — gaps that matter for a 9-param wait tool.

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, front-loaded with the core purpose before the parameter-combination rule, with no wasted wording. It is arguably too terse for the parameter count, but that is a completeness issue rather than a conciseness flaw.

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?

For a 9-parameter, zero-annotation tool with 11% schema coverage and no output schema, the description is too thin. It does not define the individual condition parameters, failure/timeout semantics, or return behavior, leaving the agent to guess on most of the surface area.

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 11% (just tabId documented), so the description must compensate. It names all condition params and clarifies they combine while networkIdle is exclusive, which is meaningful structure not in the schema. But it never explains what text vs textGone, selector vs selectorGone, or expression actually mean, nor timeoutMs units/default.

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 and resource: 'Espera una condición' (waits for a condition), which is clearly a synchronization/wait operation distinct from action siblings like click or navigate. It does not name a sibling alternative, but the purpose is unambiguous.

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?

Gives real invocation guidance by stating which condition parameters can be combined and that 'networkIdle va solo' (goes alone). However, it offers no when-to-use-vs-alternatives context, no guidance on when to prefer networkIdle versus URL/selector conditions, and no mention of timeout behavior.

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