Skip to main content
Glama

wait_for_url

Read-onlyIdempotent

Waits for the browser URL to match a pattern after form submissions, logins, or redirects. Use it to confirm navigation succeeded and return the final URL.

Instructions

[Agent Browser] Wait for URL to contain a pattern (substring match). Use after form submissions, login flows, or redirects. E.g., wait_for_url('/dashboard'). Returns data.url with the final URL.

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": {
      "pattern": "<pattern>"
    },
    "name": "wait_for_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYes
timeout_msNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds useful semantics (substring matching, returns data.url with the final URL), but omits the key runtime behavior: whether it blocks/polls, and what happens when the pattern never appears within the timeout.

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?

Four short sentences, purpose front-loaded, with an example and a return-value note; nothing is redundant. The '[Agent Browser]' prefix is minor labeling rather than filler.

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?

Tool is simple and has an output schema, so return shape need not be re-explained (though the description helpfully does). Completeness falls short on the failure/timeout path and on the unexplained second parameter, which matter for a wait primitive.

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 0%, so the description must carry the param burden. It partially explains 'pattern' via '(substring match)' and the '/dashboard' example, but says nothing about 'timeout_ms' — no units, no mention of the 10000 default, and no statement of behavior on expiry — which is a critical omission for a waiting tool.

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+resource ('Wait for URL to contain a pattern') and clarifies the matching semantics as substring match, which distinguishes it from an exact-match or assertion-style sibling. However, it does not name the sibling it replaces (e.g., assert_url or wait_for_text), so differentiation is inferred rather than stated.

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?

Gives concrete triggering contexts: 'after form submissions, login flows, or redirects', plus an inline example. No exclusions or explicit alternatives are offered, so an agent still has to guess between this and assert_url/wait_for_text, but the when-to-use signal is clear.

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