Skip to main content
Glama

Wait For Idle

wait_for_idle

Pauses execution until terminal output stabilizes, ensuring applications finish rendering after receiving input commands.

Instructions

Wait until the terminal buffer stops changing. Useful after sending keys to wait for the app to finish rendering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID
timeoutNoMax wait time in milliseconds (default: 3000)
debounceNoHow long the buffer must be stable before considered idle, in ms (default: 300)
Behavior3/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 the core behavior (waiting for buffer stability) and provides a use case, but doesn't disclose potential side effects, error conditions, or what happens when timeout is reached. The description doesn't contradict any annotations since none exist.

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 perfectly concise with two sentences that each earn their place. The first states the core functionality, the second provides practical usage context. No wasted words or redundant information.

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?

For a tool with 3 parameters, 100% schema coverage, and no output schema, the description provides adequate context about what the tool does and when to use it. However, without annotations or output schema, it could benefit from more behavioral details about timeout handling or return values.

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 thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema, maintaining the baseline score of 3 for high schema coverage.

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 the tool's purpose with a specific verb ('wait until') and resource ('terminal buffer stops changing'). It distinguishes from siblings by focusing on idle detection rather than text matching (wait_for_text) or other terminal operations.

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?

The description provides clear context for when to use this tool ('useful after sending keys to wait for the app to finish rendering'), which helps differentiate it from wait_for_text. However, it doesn't explicitly state when NOT to use it or mention specific alternatives among siblings.

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/nvms/tui-mcp'

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