Skip to main content
Glama

wait_for_install

Waits for an Android APK install to finish after the user confirms it, then returns on successful installation, installer exit, or timeout—avoid shell polling loops.

Instructions

After opening the Android installer for an APK, wait until the user has tapped Install/Update and confirmed. Returns as soon as the package is installed (at least min_version_code if given), or early if the installer is no longer on screen, or after the timeout. Use this instead of shell polling loops.

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name, e.g. com.buddyapps.flappy
timeout_sNoDefault 120, max 300
min_version_codeNoWait for at least this versionCode (for updates)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it explains blocking behavior, success return, early exit if the installer is gone, and timeout behavior. It does not specify what happens on timeout (error vs. return value) or whether the tool interacts with the UI.

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?

Three compact sentences, front-loaded with the precondition and followed by return conditions and the alternative to polling. No wasted wording.

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?

Complete enough for a simple wait tool with full parameter documentation and no output schema. The main remaining gap is the exact result or failure behavior after the timeout expires.

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%, so the schema already documents all three parameters. The description reinforces min_version_code and timeout semantics but adds little beyond what the schema provides.

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?

States a specific verb and resource: waits for an APK installation to complete after the Android installer is opened. The scope is precise enough to distinguish it from generic wait, confirm, and install_apk siblings.

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?

Clearly states when to use it: after opening the Android installer and before relying on shell polling loops. It names an alternative approach, though it does not explicitly list sibling tools or when not to use it.

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