Skip to main content
Glama

agy_run_wait

Wait for specific events on runs, such as attention or completion, instead of polling status.

Instructions

Wait for sparse Run events instead of repeatedly polling status.

run_ids is always a list, even for one Run. Supported condition values: any_attention, any_terminal, all_terminal, any_event, plus aliases attention, terminal, finished, finish, complete, completed, result, all_finished, all_complete, and all_completed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
run_idsYes
conditionNoany_attention
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It mentions event waiting and condition values but does not explain blocking behavior, timeout handling, error scenarios, or whether it is destructive. This is insufficient for a waiting tool.

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?

The description is concise: two sentences. The first sentence clearly states the purpose, and the second provides key details about run_ids and conditions. No unnecessary text, though more structure could improve readability.

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?

Given the output schema exists, the description does not need to detail return values. However, it lacks sufficient context to fully differentiate from siblings like agy_run_observe or agy_run_result. The condition aliases are helpful but overall completeness is moderate.

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

Parameters2/5

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

Schema coverage is 0%, so the description must compensate. It explains run_ids (always a list) and lists condition values, but does not describe the 'after' parameter or timeout_seconds beyond default. Only partial parameter guidance is provided.

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: 'Wait for sparse Run events instead of repeatedly polling status.' It differentiates from polling tools and siblings like agy_run_cancel or agy_run_result by focusing on event-driven waiting.

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 suggests using this tool to avoid polling but does not provide explicit when-to-use or when-not-to-use guidance. It lists condition aliases, which helps, but no mention of alternatives like agy_run_observe.

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/varadfromeast/codex-agy-bridge'

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