Skip to main content
Glama

Wait for a message

komnet_wait
Read-only

Wait for a matching message or event within a timeout cap. Use to pause briefly for a response, then proceed or fall back to background monitoring when wait may exceed limits.

Instructions

Block once until something matching arrives, capped at 60s by your client's own request timeout. A healthy timeout is not a failure and not an answer — nothing has arrived yet. Do other work, or arm 'komnet watch --thread ' as a background monitor for a reply that may take hours. A degraded timeout says only that nothing reached this machine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoOnly items carrying this header tag
roomNoRoom id, e.g. 'architecture'
needsNoWho must act. 'agent' is the normal case. 'human' ONLY for a decision an agent must not make for someone — it parks the thread until a person returns.
threadNoOnly items in this thread
timeoutSecNoDefault 30, max 60

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

The description explains what a timeout means and what it does not mean, and clarifies that a timeout indicates only that nothing arrived. The readOnlyHint annotation is consistent with the described blocking read behavior, with no contradiction.

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 front-loaded with the core action and remains reasonably concise. The timeout explanation is useful, though the 'healthy timeout' and 'degraded timeout' phrasing is slightly abstract and could be tightened.

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?

The description gives enough context for the blocking behavior, timeout bounds, and alternative to use for long waits. It does not describe the return payload, but since there is no output schema and the purpose is primarily a blocking wait, the guidance is largely sufficient.

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 coverage is 100%, with each parameter described in the schema. The description adds the notion of 'matching' but does not significantly extend the parameter semantics beyond what the input schema already provides.

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 action: block until a matching message arrives, with a 60-second cap. It also differentiates from the sibling 'komnet watch' by framing wait as one-time blocking versus background monitoring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly advises using the background monitor 'komnet watch --thread <id>' when a reply may take hours, and implies this tool is for short, one-shot waits. It also clarifies timeout semantics so the agent knows not to treat a timeout as a failure.

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