Skip to main content
Glama

Wait for new bridge message

bridge_wait

Blocks until a new message with seq greater than since arrives on a shared agent channel, waking when another agent posts or returning at timeout.

Instructions

Block until a message with seq > since lands (event-driven — wakes the instant the other agent posts), or until timeout_ms elapses. Default timeout 60000ms (max 600000). WATCH MODE — to get 'triggered' on every message instead of waiting once: after this returns, handle the message(s), optionally bridge_post a reply, then immediately call bridge_wait again with since set to the highest seq you just saw. On a timeout (returned=0), just call it again. Keep looping to stay parked on the channel.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "channel": "<channel>",
      "since": "<since>"
    },
    "name": "bridge_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceYesReturn when a message with seq > since exists.
channelYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and does well: it discloses blocking semantics, event-driven wake, default 60000ms timeout, 600000ms max, and the meaning of a timeout return (returned=0). It is a blocking call that can hold an agent for up to 10 minutes, and that is stated. What is missing is any mention of what the payload looks like on success or whether concurrent calls on the same channel interact.

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?

Front-loaded with the core blocking contract, then the timeout facts, then the watch-mode recipe. It is a bit long for a three-parameter tool, and the watch-mode paragraph repeats 'call bridge_wait again' three times, but each restatement covers a different branch (message seen vs. timeout vs. continuous parking).

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 blocking long-poll tool with no output schema, an agent needs to know the timeout defaults, how to resume, and what a timeout return means — all present. The remaining gap is return-shape detail, since there is no output schema to document what a message object contains.

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?

Schema coverage is only 33% — channel and timeout_ms have no schema descriptions — so the description must compensate, and it partly does: it defines the since semantics (messages with seq > since), gives the timeout default and maximum, and explains how since should be advanced during watch mode. The channel parameter, the least obvious one, is never described in either place.

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 and condition: block until a message with seq > since arrives or until timeout_ms elapses. It distinguishes itself from siblings (bridge_read, bridge_post) by explaining the event-driven wake-on-post behavior and the WATCH MODE looping pattern, so an agent can tell it is not a one-shot read.

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?

Explicit when-to-use guidance: call it to stay parked on the channel, re-call after handling messages with since set to the highest seq seen, and re-call on timeout (returned=0). The watch-loop pattern is spelled out step by step, including the optional bridge_post reply between iterations.

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

Deploy Server

Other Tools