Skip to main content
Glama
aelaguiz

herdr-mcp

by aelaguiz

wait_for_output

Wait until a terminal pane's output shows a literal substring or regex pattern, searching existing output then polling up to a timeout. Use to synchronize on expected results.

Instructions

Wait until a pane's output matches a pattern.

pane: pane id like `w17:p1`.
pattern: literal substring, or a Rust regular expression when regex=True.
The existing snapshot is searched first, then polled until timeout_ms.
source: visible, recent (default), or recent-unwrapped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paneYes
regexNo
sourceNorecent
patternYes
timeout_msNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Because no annotations are provided, the description itself must disclose how the tool behaves, and it does: the existing snapshot is searched first, then it polls until timeout. It also explains regex versus literal matching. It does not describe error behavior when timeout elapses or how recent-unwrapped differs from recent, which is a mild transparency gap.

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 compact, front-loaded with the main behavior, and each line adds a meaningful piece of information for a parameter or option. There is no redundant or filler 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?

For a polling/search tool with an output schema and five parameters, the description covers purpose, pattern semantics, source selection, search order, and timeout. The main residual gap is the meaning of recent-unwrapped and what happens when the wait times out, but nothing blocks a competent agent from selecting and invoking the tool correctly.

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

Parameters4/5

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

The input schema provides property names and defaults but no descriptions, so coverage is 0%. The description compensates by explaining pane id format, pattern semantics, regex behavior, source choices, and timeout usage. The timeout_ms explanation is thinner than the others, relying on the schema default for full meaning, so it is useful but not complete.

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 opens with a specific verb and resource: wait for a pane's output to match a pattern. It clearly communicates the tool's synchronous, polling nature and distinguishes it from siblings like read_pane, which would only inspect the current snapshot, and wait_agent, which waits on an agent rather than a pane.

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 gives practical usage context, including the order of operations, expected pattern syntax, source options, and timeout behavior. It does not explicitly name alternatives like read_pane or wait_agent for contrast, so it stops short of full when-to-use/when-not-to-use guidance, but an agent can infer the right situation clearly.

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/aelaguiz/herdr-mcp'

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