Skip to main content
Glama

browser_wait_for_network

Waits for a network request to complete after actions such as button clicks, ensuring API data loads before reading page content.

Instructions

Wait for a network request to complete. Useful after clicking buttons that trigger API calls - ensures data is loaded before reading the page. Monitors real network traffic via Chrome DevTools Protocol.

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": "browser_wait_for_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoMax wait in ms (default: 15000)
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.
url_patternNoSubstring to match in the request URL (e.g. "/api/users", "graphql"). Empty = any request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A3.6/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 burden, and it does disclose a meaningful trait: it observes real network traffic via Chrome DevTools Protocol rather than polling page state. However, it does not say what happens on timeout (error vs. silent return), whether already-completed requests match, or whether it returns request details.

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?

Three short sentences, front-loaded with the action and followed by the situational payoff and the implementation basis. Nothing is redundant, though the CDP sentence is closer to implementation trivia than actionable guidance.

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 3-parameter tool with no annotations and no output schema, the description covers purpose and trigger context but leaves the failure mode (timeout behavior) and the return value unexplained. An agent can call it correctly but cannot predict what it gets back on success or timeout.

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 100%, so the schema already documents timeout, partition, and url_pattern including the empty-means-any behavior. The description only implies URL matching ("a network request") and adds no syntax, default, or partition semantics beyond what the schema provides.

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?

"Wait for a network request to complete" gives a specific verb and resource, and the second sentence clarifies the intent (ensure data is loaded before reading). It does not explicitly distinguish itself from the sibling browser_wait, so the agent must infer that this one is network-specific rather than time- or DOM-based.

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

Usage Guidelines4/5

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

Concrete when-to-use guidance is given: "Useful after clicking buttons that trigger API calls." It states the condition (post-click, before reading the page) clearly, but gives no when-not-to-use guidance and does not name browser_wait as the alternative for non-network waits.

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