Skip to main content
Glama

wait_for_load_state

Read-onlyIdempotent

Pause browser automation until the page reaches a specified load state, such as networkidle for SPAs or domcontentloaded for faster checks, to avoid interacting before content is ready.

Instructions

[Agent Browser] Wait for page to reach a load state: 'load', 'domcontentloaded', 'networkidle'. 'networkidle' waits until no network requests for 500ms - good for SPAs. 'domcontentloaded' is faster but may miss async content.

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_load_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNonetworkidle

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and non-open-world, so the safety bar is low. Beyond that, the description adds real behavioral detail: the 500ms quiet window that defines networkidle and the risk that domcontentloaded misses async content. It does not disclose what happens on timeout or whether waiting can block indefinitely, which is the main behavioral gap for a 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short lines, the primary capability first, then the per-value guidance. Every sentence earns its place and there is no filler or repetition of schema data.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. What is missing is timeout behavior and the outcome when the requested state is never reached (error vs. silent return) — material for a tool whose whole job is blocking until a condition holds.

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 0% and there is no enum on the single 'state' property, so the description carries the full burden — and it does, by enumerating the three legal values and explaining the tradeoff between two of them. It leaves 'load' unexplained and does not restate the 'networkidle' default, hence not a 5.

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 action and resource — waiting for a page to reach one of three named load states — and enumerates those states. It is unambiguous about what the tool does, but it does not distinguish itself from the many sibling wait tools (wait_for_text, wait_for_url, wait_for_change, page_state), so an agent must infer the boundary itself.

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?

It gives useful decision guidance between parameter values — 'networkidle' for SPAs, 'domcontentloaded' as a faster but potentially incomplete option — which is genuinely actionable. However, it never says when to call this tool at all (e.g., after a navigation or click) or how it relates to the other wait_for_* siblings, so tool-selection guidance is only implied.

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