Skip to main content
Glama

wait_ms

Read-only

Pause execution for a specified number of milliseconds, capped at 10,000 ms, to let pages load or apps draw before continuing.

Instructions

Wait (e.g. for a page to load or an app to draw) — capped at 10000 ms.

Returns {"ok", "action", "requested_ms", "waited_ms", "clamped"} — "clamped": true means you asked for more than the cap and only waited_ms elapsed. Prefer wait_for_stable() (waits until the screen stops changing), wait_for_text(), or settle_ms on the action itself when you also want to observe the result in the same call.

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": {
      "ms": "<ms>"
    },
    "name": "wait_ms"
  }
}

Input Schema

NameRequiredDescriptionDefault
msYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the readOnly/openWorld annotations by disclosing the 10000 ms ceiling and the clamping behavior that silently shortens long requests. The return-shape narration is partly redundant with the existing output schema, which keeps it from a top score, but the 'clamped' semantics are genuinely useful behavioral context.

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?

The cap is front-loaded right after the purpose, and the alternative-routing comes last. Three compact clauses with no filler, though the return-field enumeration is slightly verbose for a tool that already publishes an output schema.

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

Completeness4/5

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

For a one-parameter wait tool, everything needed to call it correctly is present: purpose, units, cap, clamping outcome, and preferred alternatives. The only shortfall is that return fields are re-explained when the output schema already covers them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter is only named 'ms', so the description must carry the meaning — it does, stating the unit-implied cap of 10000 ms and that over-cap values are clamped rather than rejected. That is meaningful semantics an agent would otherwise have to guess.

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?

States a concrete verb and purpose ("Wait (e.g. for a page to load or an app to draw)") plus the hard bound ("capped at 10000 ms"). It immediately distinguishes itself from wait_for_stable and wait_for_text by naming them as alternatives for different needs.

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 routes the agent: prefer wait_for_stable(), wait_for_text(), or the settle_ms option on an action "when you also want to observe the result in the same call." That gives both when-to-use and when-to-use-something-else with the selecting condition.

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