Skip to main content
Glama

herdr_pane_wait_for_output

Wait for pane output to match a substring or regex, then return the matched lines. Blocks instead of polling.

Instructions

Block until the pane output matches a substring or regex, then return the read. More efficient than polling. Returns the matched output lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNoMax lines in the returned read.
matchYesMatch spec: {type:'substring'|'regex', value}.
sourceYesBuffer to watch: visible, recent, recent_unwrapped or detection.
pane_idYesId of the pane.
strip_ansiNoStrip ANSI escape sequences (default true).
timeout_msNoHow long to wait (null for server default).
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses the blocking nature ('Block until') and return type ('Returns the matched output lines'), but does not explain timeout behavior (e.g., what happens if timeout_ms is exceeded), error conditions, or whether the tool consumes or clears output. This is moderate but incomplete.

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 two sentences long, front-loads the core action, and contains no filler. Every phrase adds value: the blocking behavior, the match criterion, the efficiency note, and the return outcome. It is ideal in size and structure.

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?

The tool has 6 parameters (including a nested match object) and no output schema, so the description must explain both usage and return. It covers the basic flow (block until match, return lines) but omits important context such as timeout behavior, how 'source' affects which buffer is watched, and what counts as 'matched output lines' across buffer types. This leaves gaps for an agent trying to invoke it correctly in edge cases.

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%, and the schema already explains each parameter (e.g., match type, source, lines, timeout_ms). The description adds minimal semantic value beyond that, mainly reaffirming the matching concept ('substring or regex') and the return. Given the high coverage, a baseline 3 is appropriate.

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 states a specific verb ('Block until') and resource ('pane output'), and clearly identifies the triggering condition ('matches a substring or regex'). This distinguishes it from sibling tools like herdr_pane_get, which return output immediately, and herdr_pane_send_input, which writes. The purpose is unambiguous.

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 explicitly says 'More efficient than polling,' which tells the agent to use this tool instead of repeatedly calling a read tool. However, it does not name the alternative tool (e.g., herdr_pane_get) or provide an explicit 'when not to use' exclusion, so it falls short of a 5.

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/Twinber/herd-orchestrator'

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