Skip to main content
Glama

desktop_wait

Waits for a specified duration or until a UI element, window, text, menu, or event condition is met, enabling synchronized macOS app automation.

Instructions

Wait for ms, an element (role:text), a window, text, a menu or an event.

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

Input Schema

NameRequiredDescriptionDefault
msNo
appNo
menuNo
textNo
countNo
eventNo
valueNo
actionNoclick
windowNo
elementNo
timeoutNo
predicateNoexists
window_idNo
menu_closedNo
notificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior2/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 communicates that this is a waiting operation but omits timeout behavior, whether the tool blocks until success or returns early, what happens on timeout, and how predicate affects the wait.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single fragmentary sentence that is concise but under-specified for a 15-parameter tool. The parenthetical "(role:text)" is cryptic and the enumeration is not structured to help an agent map parameters to behaviors.

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?

This is a complex tool with 15 parameters, no annotations, no schema descriptions, and no output schema. The description covers only a subset of wait targets and omits critical behavioral details such as timeout defaults, predicate semantics, and failure modes, making it insufficient for correct invocation.

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 0%, so the description must compensate for 15 parameters. It names only ms, element, window, text, menu, and event, leaving app, count, value, action, timeout, predicate, window_id, menu_closed, and notification unexplained; even the named parameters receive no meaningful semantics beyond their names.

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 states the verb "Wait for" and enumerates several waitable targets: ms, element, window, text, menu, or event. However, it does not clarify what it means to wait for each target, what condition ends the wait, or how this differs from siblings like desktop_check or desktop_find.

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?

There is no guidance about when to use this tool versus alternatives, no preconditions, and no exclusions. An agent must infer all usage context from the name and parameter list.

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