Skip to main content
Glama

wait_for_blocked_resolved

Read-onlyIdempotent

Waits until a thread's explicit dispatch block is cleared, then returns the BlockedResolved event with reason and resolver, or null if the timeout lapses.

Instructions

Block until an explicit dispatch block on a thread is cleared (clear_thread_block emits blocked_resolved) and return the BlockedResolved event (the reason that cleared, resolved_by), or null when the timeout lapses. It answers only a cleared block, not a dependency finishing (wait_for_ready) or a lapsed claim (wait_for_claim_expired); get_thread_block reads the current block. Scoped to thread_id and/or channel_id when given, else any thread you may read in the workspace; clearing a thread that was not blocked emits nothing. since_log_id replays a clear recorded in the gap before this call subscribes. To put a deadline on a thread instead, use set_wait. Requires workspace:read.

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": "wait_for_blocked_resolved"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idNoUUID of a thread; wait for this thread's block to clear.
channel_idNoUUID of a channel; only blocks cleared on its threads count. Omitted, any thread you may read in the workspace.
timeout_msNoWait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null.
since_log_idNoYour high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv479.0.2
    • changedInput schema / properties / channel_id / description
      Previous value: -"optional: scope to one channel's threads"New value: +"UUID of a channel; only blocks cleared on its threads count. Omitted, any thread you may read in the workspace."
    • changedInput schema / properties / since_log_id / description
      Previous value: -"lookback anchor: replay the log for a matching event with log_id greater than this before parking live"New value: +"Your high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count."
    • changedInput schema / properties / thread_id / description
      Previous value: -"optional: wait for this thread's block to clear"New value: +"UUID of a thread; wait for this thread's block to clear."
    • changedInput schema / properties / timeout_ms / description
      Previous value: -"long-poll window in milliseconds"New value: +"Wait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null."
  2. First observedv479.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, and the description goes well beyond them: return shape, null on timeout, the workspace:read authorization requirement, the no-op case where clearing an unblocked thread emits nothing, and the since_log_id gap-replay behavior. These are exactly the operational details an agent needs before waiting on 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?

Purpose and return contract are front-loaded, followed by sibling differentiation, scoping, gap replay, and prerequisites in a logical order. It is dense — a single long paragraph with several parenthetical cross-references — so it is efficient but slightly harder to scan than a bulleted form would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a blocking wait with no output schema, the description covers everything an agent needs: what it returns, what null means, the timeout bound, authorization, scoping defaults, and the late-subscription gap. Nothing material is left to inference.

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 100%, so the baseline is 3, but the description adds combined semantics the schema states only per-field: thread_id and/or channel_id scoping with 'else any thread you may read in the workspace', and the gap-replay rationale for since_log_id. It reinforces rather than merely repeats, though it does not add format or edge-case detail beyond the schema.

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?

States a specific verb (block until cleared) plus the exact event returned (BlockedResolved with reason and resolved_by) and the null-on-timeout outcome. It explicitly distinguishes itself from wait_for_ready, wait_for_claim_expired, and get_thread_block, so an agent can route correctly without opening schemas.

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?

Gives explicit when-to-use plus when-not-to-use: 'answers only a cleared block, not a dependency finishing (wait_for_ready) or a lapsed claim (wait_for_claim_expired)', and points to get_thread_block for reading current state and set_wait for putting a deadline on a thread. Alternatives are named with the condition that selects them.

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