Skip to main content
Glama

aiworkhub_manager_callback_wait

Read-only

Waits for a manager mailbox callback from a verified Claude Code or OpenCode session, acknowledging the previous batch via lease IDs so unacknowledged leases are retried instead of lost.

Instructions

BLOCKING READ/CLAIM: wait for a callback for this process's verified manager mailbox route (a Claude Code or OpenCode session; the provider is resolved from the verified route, never from an argument). The loop is this one repeated call: pass the previous reply's batch_id/lease_id as ack_batch_id/ack_lease_id, or call aiworkhub_manager_callback_ack; an unacknowledged lease is retried, never lost. Use it after the watcher from aiworkhub_manager_bootstrap's mailbox.watch_argv exits.

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

Input Schema

NameRequiredDescriptionDefault
ack_batch_idNobatch_id from the previous callback_ready reply, acknowledged while the next batch is claimed; leave empty on the first wait.
ack_lease_idNolease_id from that same callback_ready reply; pass it together with ack_batch_id.
timeout_secondsNoSeconds to wait for a callback; default 240, clamped to a server maximum (at least 1) that the reply reports.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.20

TDQS

A4.5/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the call blocks, an unacknowledged lease is retried and never lost, and the ack of the previous batch happens while the next is claimed. There is mild tension with readOnlyHint=true given the 'CLAIM' and ack semantics, but the author frames it consistently as a read/claim. It does not say what the reply looks like on timeout expiry, leaving that to the output schema.

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-loads the blocking claim and the prerequisite is placed last where it reads naturally. Dense but every sentence carries operational meaning; the backtick-heavy formatting is slightly noisy but not wasteful.

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?

Covers blocking nature, lease retry, the ack loop, timeout clamping, and the bootstrap prerequisite, and an output schema exists so return values need not be restated. Minor gaps remain, such as what a timed-out wait returns and whether concurrent waits on one route are allowed.

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 the loop relationship: the ack ids come from the previous reply's batch_id/lease_id and must be passed together, with empty values on the first wait. That is semantic context the field descriptions alone only partially convey.

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 concrete verb and resource: 'wait for a callback for this process's verified manager mailbox route', and explicitly scopes it as a BLOCKING READ/CLAIM. It also clarifies that the provider comes from the verified route, not an argument, which disambiguates it from the claude-specific sibling.

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 an explicit precondition ('Use it after the watcher from aiworkhub_manager_bootstrap's mailbox.watch_argv exits') and names the alternative path ('or call aiworkhub_manager_callback_ack'). The repeated-loop framing tells the agent this is the tool to re-invoke rather than a one-shot.

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