Skip to main content
Glama

ghostlan_gui_wait_window

Waits until a visible window matching a title substring appears on a ghost's virtual display, so GUI automation can proceed only after the target window is ready.

Instructions

Wait until a visible window matching title appears in a ghost's virtual display

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": {
      "lan": "<lan>",
      "ghost": "<ghost>",
      "title": "<title>"
    },
    "name": "ghostlan_gui_wait_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
lanYesName of the virtual LAN
ghostYesGhost name inside the LAN
titleYesWindow title substring to wait for
timeout_secNoTimeout in seconds (default 10)

Output Schema

NameRequiredDescriptionDefault
xYes
yYes
idYes
pidNo
titleYes
widthYes
heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure; it does convey the blocking wait semantics and the visibility constraint, which are the key traits. However, it is silent on what happens when the timeout elapses (error vs. false return) and on polling cadence, leaving the failure path undocumented.

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?

A single sentence with no filler, front-loading the verb and the target condition. Nothing could be removed without losing information.

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?

An output schema exists and all parameters are fully described in the schema, so the description need not explain returns or inputs. The remaining gap is the timeout/failure behavior for a blocking wait, which matters for an agent that must decide whether to retry or abort.

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% and all four parameters are self-documented, so the schema does the heavy lifting. The description adds a small amount of meaning by emphasizing 'visible' windows (only visible ones match the title substring) but contributes nothing about lan/ghost/timeout semantics beyond the schema.

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?

The description names a specific verb ('Wait until') and a precisely scoped resource ('a visible window matching title ... in a ghost's virtual display'), which is enough for an agent to distinguish it from sibling listing tools like ghostlan_gui_windows. It stops short of explicitly naming that sibling or stating the complementary relationship, so it is clear but not fully differentiated.

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?

Usage is only implied: 'wait until ... appears' suggests a blocking synchronization step before subsequent GUI actions, but the description never says when to prefer this over polling ghostlan_gui_windows or ghostlan_wait_log, nor when not to use it. No prerequisites or exclusions are given.

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