Skip to main content
Glama

da_wait_for_window

Block execution until a window with a matching title appears. Supports substring, exact, or regex matching, configurable timeout, and polling interval for app-launch synchronization.

Instructions

Block until a window with a matching title appears in da_window_list, or timeoutMs (default 5000, max 60000) elapses. Match strategies: "substring" (default, case-insensitive), "exact", or "regex" (full match). Polls every intervalMs (default 200, min 50, max 5000). Throws NOT_FOUND on timeout — use this after da_launch to wait for a newly-spawned app to finish painting before clicking inside it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchNo
titleYes
timeoutMsNo
intervalMsNo
Behavior5/5

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

With no annotations provided, the description carries the full burden and excels: it discloses blocking behavior, timeout defaults/max, match strategies (case-insensitive substring, exact, regex full match), polling interval defaults/bounds, and NOT_FOUND error on timeout.

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?

The description is four sentences, front-loaded with the core purpose, then parameter details, then error/usage. Each sentence adds unique, non-redundant information without unnecessary length.

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

Completeness5/5

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

For a blocking wait tool with no output schema, the description is fully self-contained: it explains behavior, defaults, error conditions, and usage context (after da_launch) while referencing da_window_list. No critical gaps remain.

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

Parameters5/5

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

Schema coverage is 0%, but the description adds critical meaning for every parameter: title matching, match strategy semantics, timeout/interval defaults and bounds, and error behavior. This goes well beyond the raw schema properties.

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+resource formulation: 'Block until a window with a matching title appears in da_window_list'. This clearly distinguishes it from siblings like da_wait_for_text and da_window_list.

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

Usage Guidelines4/5

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

Provides explicit contextual guidance: 'use this after da_launch to wait for a newly-spawned app to finish painting before clicking inside it.' However, it does not explicitly mention when not to use the tool or name alternative tools for exclusion cases.

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/cioinside/da-mcp'

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