Skip to main content
Glama

firefox_wait

Read-only

Pause script execution until a specified CSS selector or text appears on the page, with an optional timeout. Use it to sync browser automation with dynamically loaded content before clicking or reading.

Instructions

Wait until a selector or text appears on the page.

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

Input Schema

NameRequiredDescriptionDefault
textNo
tabIdNoTab id from firefox_tabs. Default: the tab last used, else the visible one.
selectorNo
timeoutMsNoDefault 10000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. Beyond that the description adds nothing: it does not say what happens when the condition is never met (throw vs. return false), whether it polls or blocks, or what timeout applies — all behaviorally important for a wait tool with no output schema.

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?

A single tight sentence with the operation front-loaded and no filler. It is efficient, though its brevity is more under-specification than deliberate economy.

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 4-parameter tool with no output schema and only 50% schema description coverage, the description should explain the selector/text relationship and the timeout outcome. Neither is present, leaving an agent guessing about return values and failure modes.

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 50% (tabId and timeoutMs are documented in-schema), so baseline is 3. The description mentions 'selector' and 'text' but does not clarify the crucial one-of relationship between them, whether both may be supplied, or whether 'text' is exact match or substring — and since zero parameters are required, that ambiguity matters.

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?

Specific verb plus resource: 'Wait until a selector or text appears on the page' clearly identifies a polling/blocking operation, which is distinguishable from firefox_find (immediate search) and firefox_read. It stops short of naming or contrasting any sibling explicitly, so it does not reach a 5.

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 usage is only implied by the semantics of 'wait until ... appears' — an agent can infer it is for asynchronous page content. There is no explicit statement of when to prefer this over firefox_find, no precondition (e.g. call after navigation), and no guidance on failure or timeout cases.

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