Skip to main content
Glama
aipm-engine

AI Process Manager

by aipm-engine

wait_for

Read-only

Long-poll until a process, file, or window condition is met, replacing polling loops. Supports process start/end, file existence/stable, window title; max 50 seconds per wait.

Instructions

Long-poll until a condition is met (or timeout). Replaces polling loops. Conditions: process_ended, process_started, file_stable (render/download done), file_exists, window_title_contains. Max 50s per call; if satisfied=false, call again to keep waiting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNoMax wait seconds (default 50, max 50)
stable_forNoFor file_stable: seconds unchanged (default 10)
file_existsNoFile path that must appear
file_stableNoFile path that must stop growing
process_endedNoProcess name fragment that must exit
process_startedNoProcess name fragment that must start
window_title_containsNoWindow title fragment that must appear
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds valuable behavioral context: it is a long-poll with a 50s cap, and multiple calls may be required. This goes beyond annotations by explaining the blocking and retry nature.

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 three sentences: it states the primary purpose, lists conditions, and gives the critical timeout/retry caveat. Every sentence earns its place with no redundancy or filler.

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, conditions, timeout limit, and retry behavior. It does not explicitly describe the full return value shape beyond mentioning 'satisfied=false', and there is no output schema, but for a simple waiting tool this is sufficiently complete.

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?

The input schema provides 100% coverage with descriptions for all 7 parameters, so the schema carries the burden. The description adds marginal value by interpreting 'file_stable' as 'render/download done' and referencing the timeout, but does not add significant new semantics.

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?

The description clearly states it 'Long-poll until a condition is met (or timeout)' and lists specific conditions (process_ended, process_started, file_stable, file_exists, window_title_contains). The phrase 'Replaces polling loops' distinguishes it from sibling tools that perform immediate checks, giving specific verb+resource+scope.

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?

It provides clear context for when to use it: 'Replaces polling loops' and 'if satisfied=false, call again to keep waiting'. However, it does not explicitly name alternatives or state when not to use the tool, so it lacks full exclusion guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aipm-engine/AIPM'

If you have feedback or need assistance with the MCP directory API, please join our Discord server