Skip to main content
Glama
Browser MCP Server

Browser MCP Server

wait_for_response

Pauses automation until a browser network response matches a URL substring or glob pattern, with optional timeout and page targeting. Use it to synchronize actions with API or page responses.

Instructions

Wait for a network response 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_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
timeoutNo
urlPatternYesURL substring or glob pattern to match

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.7/5.0
Behavior2/5

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

There are no annotations, so the description carries the full disclosure burden. It does not say what happens when the timeout elapses, whether there is a default timeout, whether the call blocks or errors on no match, or what the returned response contains. For a wait operation, timeout and failure behavior are the most important things an agent needs, and none of them are covered.

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 definition is a single front-loaded sentence with no wasted words, and the matching condition is stated first. It is concise, though the brevity comes at the cost of the guidance noted in other dimensions.

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?

With three parameters, no annotations, and no output schema, the description should explain timeout semantics, page targeting, and failure behavior. It covers none of these, which is a substantial gap for a blocking wait tool whose whole purpose is conditional timing.

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?

Schema description coverage is only 33%: urlPattern is documented, but pageId and timeout have no descriptions in either the schema or the tool description. The description only echoes the URL-pattern matching that the schema already defines, and adds nothing about units, defaults, or which page is targeted.

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 and resource: wait for a network response, scoped by a URL pattern. That is concrete enough to distinguish a response-wait from unrelated siblings such as click or get_cookies. It does not, however, distinguish it from the closely related wait_for_request sibling, which by name alone could plausibly do the same thing.

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

Usage Guidelines2/5

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

There is no statement of when this tool should be used instead of wait_for_request, wait_for_network_idle, or wait_for_url. No prerequisites are given, such as requiring an active page or a pending navigation that will trigger the response. The agent is left to infer selection criteria from sibling names alone.

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