Skip to main content
Glama
Browser MCP Server

Browser MCP Server

wait_for_request

Waits for a network request matching a URL pattern, letting AI agents synchronize browser actions with page or API traffic.

Instructions

Wait for a network request matching URL pattern.

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": {
      "urlPattern": "<urlPattern>"
    },
    "name": "wait_for_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
timeoutNo
urlPatternYesURL substring to match

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but only implies a blocking wait. It does not explain timeout failure behavior, what request information is returned, whether existing or in-flight requests can match, or what happens when no pageId is supplied.

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?

The single sentence is front-loaded, easy to scan, and contains no filler. Its brevity is efficient, although calling the filter a 'URL pattern' is less precise than the schema's 'URL substring' and leaves operational details unstated.

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 three-parameter synchronization tool with no annotations or output schema, the definition leaves important invocation and outcome details unspecified. Timeout behavior, pageId defaults, return behavior, and request-versus-response semantics remain unclear, limiting reliable use beyond the simplest call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description only repeats that urlPattern controls matching, while the schema already more precisely defines it as a URL substring. Despite low schema coverage, it adds no semantics for pageId or timeout, including page selection, timeout units, defaults, or valid ranges.

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 clearly states the action (wait), resource (a network request), and filter (a matching URL pattern). It does not explicitly distinguish request events from the sibling wait_for_response or the other wait tools.

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 matching condition implies use when synchronizing on a particular request, but there is no explicit when-to-use guidance or comparison with alternatives such as wait_for_response or wait_for_network_idle. It also does not clarify whether only requests initiated after the call begins qualify.

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