Skip to main content
Glama

page_waitTimeout

Wait a specified number of milliseconds to allow rendering ticks to settle. Use only for extremely short pauses without a clear signal.

Instructions

等待指定的毫秒数(dumb sleep)。⚠️ 仅用于「渲染 tick 留白」等无明确信号的极短等待;等任意条件(page.data 变化 / SSE done / 异步状态切换)请改用 mp_pollUntil,否则容易出现时间太短抓空 / 时间太长拖慢测试。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectionNo可选连接覆盖(不传则用默认会话)。可用字段:mode(launch|connect)、cliPath、projectPath、wsEndpoint、timeout、port(【自动化端口】→ cli auto --auto-port,默认 9420;不是 IDE HTTP 服务端口,别把 IDE 服务端口传进来)、account、ticket、trustProject、args、cwd、autoClose、autoLaunch、launchTimeout、connectTimeout。
millisecondsNo
Behavior4/5

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

No annotations provided, so description carries full burden. It describes the tool as a 'dumb sleep' and warns about misuse. Discloses that it's not for conditional waits. Does not contradict any annotations.

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 sentences with clear warning and alternative reference. No wasted words; front-loaded with key purpose.

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?

No output schema and no annotations. Description covers basic purpose and usage guidelines but doesn't explain return value or behavior besides being a sleep. For a simple tool, this is adequate but could include more about side effects or default behavior.

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 coverage is 50% (2 params, one with nested connection object). Description only mentions 'milliseconds' implicitly ('等待指定的毫秒数'), but doesn't add details about the connection parameter or provide syntax/format beyond schema. Does not compensate for low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('等待') and resource ('毫秒数'), and clearly states it's a 'dumb sleep'. It distinguishes itself from the sibling tool 'mp_pollUntil' by specifying use cases: short waits with no clear signal vs. waiting for conditions.

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

Usage Guidelines5/5

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

Explicitly states when to use (仅用于「渲染 tick 留白」等无明确信号的极短等待) and when not to use (等任意条件...请改用 mp_pollUntil). Also warns about risks of too short/timing issues.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Chaixueyuan/weapp-agent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server