Skip to main content
Glama

google_wait

Wait for specified text or selector to appear on a page by polling every 250ms, useful when slow single-page app rendering delays content; set a timeout to avoid indefinite waits.

Instructions

等页面出现某段文字或某个元素(轮询 250ms),SPA 首屏渲染慢时用。

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

Input Schema

NameRequiredDescriptionDefault
textNo
tab_idNo
poll_msNo
selectorNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It does disclose the polling interval (250ms) and the wait-until condition. It omits timeout behavior, what happens on timeout, and whether it blocks. Key behavioral details are missing but the core blocking/polling semantics are conveyed.

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?

Single compact sentence with the core semantics front-loaded; the parenthetical polling detail is efficient. It is arguably too terse for the number of parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A blocking wait tool with 5 undocumented parameters, no annotations, no output schema, and no timeout/error semantics. The description is inadequate for the complexity.

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?

Five parameters, none required, and schema description coverage is 0%. The text mentions 'text' and 'selector' implicitly (某段文字/某个元素) and the polling interval, but does not explain tab_id, timeout_ms, or the precedence between text and selector, nor defaults.

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 states a specific action: wait until some text or element appears on the page (250ms polling), and mentions the SPA first-paint scenario. It's clear what the tool does, though it doesn't distinguish itself from siblings like google_find or google_status.

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?

It gives one usage hint: use when SPA first-screen rendering is slow. It does not say when NOT to use it, nor contrast with alternatives such as google_find (locate elements) or google_status. Usage is implied but incomplete.

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