Skip to main content
Glama

hub_queue_wait

Wait for new content in a role's queue and get it immediately. Use this long-poll to replace sleep-and-recheck loops when expecting an agent update.

Instructions

Block until new content lands in 's queue (this node's file plus any mesh-synced peer files for that role), then return it — a real long-poll, not a snapshot you have to re-poll. Returns {changed:false} if nothing arrives within timeout. Local/stdio only (not available on the shared HTTP server). Use this instead of a sleep-and-recheck loop when waiting on an agent to report back via hub_queue_send.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleYes
timeoutNoseconds to block, default 45, max 540. The default is deliberately short: MCP clients abort a tool call on their own timeout (commonly ~60s) and hubd cannot see that limit. Raise it only if you know your client tolerates a longer call.
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses blocking behavior, long-poll semantics, timeout fallback ({changed:false}), and the local-only constraint. It does not clarify whether the returned content is consumed/dequeued, but the core behavioral profile is transparent.

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 three dense sentences with no filler. It front-loads the action (Block until...), immediately explains the key behavioral distinction (real long-poll, not a snapshot), and packs availability and usage guidance into separate clear sentences.

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 2-parameter tool with no output schema, the description covers the main workflow: blocking wait, timeout behavior, return values in the timeout case, and availability constraints. It stops short of describing the exact shape of a successful return payload, which would make it fully complete without an output schema.

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 50%: 'timeout' is richly described in the schema, while 'role' has no schema description. The description gives partial meaning to 'role' via "<role>'s queue" but does not fully compensate for the missing role parameter documentation or specify input format/enum/options.

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 clearly states the tool blocks until new content lands in a role's queue and returns it, with explicit long-poll scope details. It is specific about the resource (queue) and behavior, but it does not explicitly differentiate from the sibling hub_queue_wait_all.

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?

The description explicitly recommends using this instead of a sleep-and-recheck loop when waiting for an agent to report via hub_queue_send. It also clearly warns that this is local/stdio only and not available on the shared HTTP server, providing strong when/where guidance.

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/bzdOS/hubd'

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