Skip to main content
Glama

wait

Read-only

Blocks until a specified UI condition is met or a minimum process generation/document epoch is reached, with an optional timeout.

Instructions

Wait for a bounded UI condition or minimum ready process generation/document epoch.

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_id": "<session_id>",
      "condition": "<condition>"
    },
    "name": "wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo
conditionYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The only added behavior word is "bounded," which is already conveyed by the timeout parameter's default and maximum in the schema; the description says nothing about whether a timeout raises an error, returns false, or how long the call blocks beyond the schema defaults.

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?

A single front-loaded sentence with no filler. It is compact, though the phrase "minimum ready process generation/document epoch" is jargon-dense enough to be opaque on first read.

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

Completeness2/5

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

For a tool with a nested Condition object covering eleven kinds plus a locator sub-object, one sentence is far too thin, and there is no output schema to carry return semantics. An agent cannot determine from the description what a successful or timed-out wait yields.

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 description coverage is reported at 0%, so the description must compensate and largely does not. It adds no meaning for session_id or timeout, and only obliquely covers the condition parameter via the phrase "generation/document epoch," leaving the eleven condition kinds and their expected-value semantics unexplained.

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

Purpose3/5

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

The description names a verb ("wait") and a resource area ("UI condition"), and gestures at generation/epoch conditions with "minimum ready process generation/document epoch." But it never enumerates what a condition is or how this differs from the sibling assert_ui, so the agent must open the schema to understand the tool's actual capability.

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

Usage Guidelines2/5

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

No guidance on when to wait versus when to assert, what to do on timeout, or how to pick a condition kind. The description offers no alternatives or exclusions, leaving routing between wait and assert_ui entirely to inference.

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