Skip to main content
Glama
liufeicc

cc-computer-use

by liufeicc

wait_window

Waits for a window title to match a condition (case-insensitive substring) or until timeout, optionally targeting a specific window ID. This replaces external polling to confirm app or page readiness.

Instructions

等待窗口标题满足条件(server 内部轮询,单次调用完成)。title_contains 忽略大小写;window_id 指定则只盯该窗口,否则盯活动窗口;超时返回超时提示。用于等页面加载/应用启动,替代外部反复轮询。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
window_idNo
title_containsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
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 of behavioral disclosure. It explains internal polling, single-call completion, case-insensitive matching, window targeting behavior (specific window vs active window), and timeout behavior, all beyond what the schema conveys. This is strong transparency.

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 compact and well-structured: core behavior first, then parameter semantics, then usage guidance. Every sentence adds value, with no filler or repetition of the schema.

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?

The description covers purpose, behavior, parameters, and usage context well. However, it does not clarify what happens when title_contains is null despite being optional in the schema, nor the timeout unit. Since there is an output schema, return format is not a concern, but these two gaps slightly reduce completeness.

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

Parameters4/5

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

Schema description coverage is 0%, and the description compensates for all three parameters: title_contains (case-insensitive matching), window_id (scoping to a specific window or active window), and timeout (timeout returns a timeout message). However, it does not specify the timeout unit (seconds vs milliseconds), which is a meaningful gap for correct invocation.

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 clearly states the tool's purpose: waiting for a window title to meet a condition, with server-side polling in a single call. This makes the tool's function obvious and distinguishes it from action-oriented siblings. However, it does not explicitly differentiate from any sibling tool by name, so it misses the top score.

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

Usage Guidelines5/5

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

The description explicitly states when to use it: 'for waiting for page load/app startup', and what it replaces: 'external repeated polling'. This gives an agent clear guidance on when to choose this tool over manual polling loops, satisfying the usage-guideline criterion.

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