Skip to main content
Glama

browser_wait_for

Read-only

Wait until text appears in the phone browser's page, or is gone (gone: true). Fails with code timeout. Returns the snapshot.

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": {
      "session": "<session>",
      "text": "<text>"
    },
    "name": "browser_wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
goneNo
textYes
sessionYesSession from open_app
timeout_msNoDefault 5000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description usefully adds the failure mode ('Fails with code timeout') and the return ('Returns the snapshot'), which are real value-adds, but it omits matching semantics (substring vs exact) and default timeout behavior.

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?

Two short sentences with zero filler; the condition, the inverse-mode flag, the failure mode, and the return value are all front-loaded and each clause earns its place.

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?

With four parameters, no output schema, and only half the params documented in the schema, the description covers the essentials (what it waits for, the gone inversion, error code, returned snapshot). It still leaves text-matching behavior and the timeout default implicit, which matters for correct invocation.

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%: session and timeout_ms are documented in the schema, while text and gone are not. The description compensates by explaining gone: true inverts the wait, but leaves the matching semantics of text (substring? case-sensitive?) undefined, so meaning is only partially added.

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 ('Wait until') and a precise condition (text appears, or is gone when gone: true) scoped to the phone browser's page. It is clearly distinguishable from siblings like browser_snapshot or browser_click, though it never names an alternative explicitly.

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?

Usage is only implied: an agent can infer this is for waiting on dynamic content rather than reading state. There is no explicit when-to-use/when-not guidance or pointer to browser_snapshot as the non-waiting alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.