Skip to main content
Glama

wait

Pause agent execution for a set delay, until the screen image stops changing, or until a window title matches a regular expression, with a configurable timeout.

Instructions

Wait for a delay, for the image to stop changing (stable_ms) or for a window title (regexp).

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

Input Schema

NameRequiredDescriptionDefault
msNoplain delay in milliseconds
titleNoreturn once a window title matches this regular expression
screenNoscreen name; optional when the session owns exactly one screen
stable_msNoreturn once the image has not changed for this long
timeout_msNogive up after this long, default 5000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses what causes the call to return, which is core behavior, but omits what happens when no condition parameter is set, whether conditions are OR'd or AND'd, whether the call blocks the session, and what (if anything) is returned. These are material gaps for a blocking operation.

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?

One front-loaded sentence with no filler; the three modes are listed in increasing specificity. Slightly dense due to inline parameter names, but every 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 five optional parameters, no required fields, no annotations, and no output schema, the agent still lacks the semantics of a zero-argument call and of the return value. The description covers the happy-path triggers but not the edge cases that this parameter set makes prominent.

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 description coverage is 100%, so all five parameters are already documented in the schema. The description adds only the parenthetical mapping of parameter names to their modes, which largely repeats the schema. Baseline 3 applies since the schema does the heavy lifting.

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') and enumerates three concrete termination conditions (plain delay, image stability, window-title regexp). An agent can distinguish this from screenshot/windows siblings as a synchronization primitive rather than a capture tool. It stops short of naming a sibling or explicitly framing itself as 'block until a UI state is reached', but the purpose is unambiguous.

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 three modes imply when each is appropriate (fixed sleep vs. wait-for-render vs. wait-for-window), but there is no explicit when-to-use/when-not-to-use guidance and no indication of precedence when multiple conditions are supplied. Nothing tells the agent which mode to prefer over polling with screenshot.

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