Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

wait_for

Waits for a labeled UI element to appear on the Android screen before proceeding, ensuring reliable automation when elements load asynchronously.

Instructions

Wait until an element with this label appears.

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": {
      "text": "<text>"
    },
    "name": "wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYeslabel to wait for
timeout_msNo1000-30000

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and falls short: it does not say what happens if the element never appears (error, timeout exception, empty result), whether it polls, or whether it is a safe non-mutating read. The only behavioral hint is the wait condition itself.

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?

One short, front-loaded sentence with zero filler. It is efficient, though so terse that the brevity edges into under-specification rather than economy.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the parameters are fully covered by the schema. However, for a tool with no annotations, the failure/timeout semantics that an agent needs to handle this call correctly are absent.

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 coverage is 100% and the schema already documents both parameters including the 1000-30000 ms range for timeout_ms. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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 gives a specific verb ("wait") and resource ("an element with this label"), so an agent knows exactly what the call does. It does not differentiate from the sibling tool "wait", leaving ambiguity about which waiting primitive to pick.

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?

The description implies usage — use when you need to wait for a labeled element rather than blind-sleeping — but never states when to prefer it over the "wait" sibling or over observe/tap_element flows. 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.