Skip to main content
Glama

Wait for Live Herdr Event

events_wait
Read-onlyIdempotent

Blocks until a matching Herdr lifecycle or agent status event arrives on the Unix socket, supporting filters, an optional sequence cursor, and timeout.

Instructions

Block until a matching Herdr lifecycle or agent status event arrives on the Unix socket (after 'after_seq' if given, or from now if omitted).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "events_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoOptional event kinds to match (for example ['pane_agent_status_changed']).
tab_idNoOptional tab ID filter.
pane_idNoOptional pane ID filter.
after_seqNoOptional sequence cursor; if omitted, waits for the next matching event arriving from now.
timeout_msNoWait timeout in milliseconds (default 30000).
agent_statusNoOptional agent_status filter (for example 'idle', 'done', 'blocked').
workspace_idNoOptional workspace ID filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context — it blocks, it reads from a Unix socket, and after_seq changes the starting point. It omits what happens when the timeout elapses (empty return vs error) and does not say what an arriving event looks like, which are the key unknowns for a blocking call.

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?

A single front-loaded sentence with no filler; the blocking verb and the resource come first and the cursor caveat is demoted to a parenthetical. Slightly dense, but nothing needs cutting.

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?

For a seven-parameter blocking tool with no output schema, the definition covers what triggers a return but not what is returned or how a timeout manifests. Those are the gaps an agent most needs closed before calling it, so the description is adequate rather than 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?

Schema description coverage is 100%, so every parameter is already documented in the schema, including the timeout default of 30000 and the after_seq fallback behavior. The description restates the after_seq semantics ('from now if omitted') but adds nothing about how kinds, tab_id, pane_id, workspace_id or agent_status combine (AND vs OR filtering). Baseline 3 applies.

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 names a specific verb and resource: 'Block until a matching Herdr lifecycle or agent status event arrives on the Unix socket'. That is far more precise than the title alone and clearly marks this as a blocking wait rather than a poll. It does not, however, distinguish itself from siblings like events_recent or agent_wait, so the agent must infer the boundary.

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 use case (blocking until an event arrives) is implied by the verb 'Block until', and the after_seq clause hints at resuming from a cursor. There is no explicit when-to-use or when-not-to-use guidance and no named alternative for polling (events_recent) or for pane/agent-specific waits, so routing is left to inference.

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