Skip to main content
Glama

aiworkhub_claude_callback_wait

Read-only

Blocks until a callback arrives for a verified Claude Code manager session, claiming the next batch while acknowledging the previous lease so unacknowledged work is retried, not lost.

Instructions

BLOCKING READ/CLAIM: wait for a callback for this verified Claude Code manager session. Alias of aiworkhub_manager_callback_wait on a Claude route. Acknowledge the previous batch by passing its batch_id/lease_id as ack_batch_id/ack_lease_id here, or call aiworkhub_claude_callback_ack; an unacknowledged lease is retried, never lost.

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_claude_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. Changed3 schema fields changedv0.12.67
    • addedInput schema / properties / ack_batch_id / description
      Added value: +"batch_id from the previous callback_ready reply, acknowledged while the next batch is claimed; leave empty on the first wait."
    • addedInput schema / properties / ack_lease_id / description
      Added value: +"lease_id from that same callback_ready reply; pass it together with ack_batch_id."
    • addedInput schema / properties / timeout_seconds / description
      Added value: +"Seconds to wait for a callback; default 240, clamped to a server maximum (at least 1) that the reply reports."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, the description discloses the blocking long-poll nature, the alias relationship to the manager-route tool, and the important at-least-once guarantee that 'an unacknowledged lease is retried, never lost'. It also frames the operation as a 'READ/CLAIM', which is a useful nuance given the claim-and-ack side effects the readOnlyHint does not fully capture. What happens on timeout (empty reply vs error) is left 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?

Short and front-loaded with the blocking mode and resource, and every sentence carries routing or semantics information. Minor deductions for reStructuredText artifacts (double backticks, hard line breaks) that add visual noise without adding meaning.

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?

With an output schema present and full parameter coverage, the description only needs to cover blocking behavior, ack responsibility, and the alias — all of which it does. The first-wait case ('leave empty on the first wait') and timeout clamping live in the schema, so their absence here is not a real gap.

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 meaning the schema does not: the ack parameters exist to release the previous lease, and the ack can be deferred to aiworkhub_claude_callback_ack, with the consequence (retried, never lost) spelled out. That gives the ack_* pair purpose rather than just type information.

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+resource and mode: 'BLOCKING READ/CLAIM: wait for a callback' for a verified Claude Code manager session. It explicitly positions itself as an alias of aiworkhub_manager_callback_wait and distinguishes itself from aiworkhub_claude_callback_ack, so an agent can route between them without inspecting schemas.

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

Usage Guidelines4/5

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

Clear operational context: call this to wait for a callback, and acknowledge the prior batch either by passing its batch_id/lease_id here or by calling aiworkhub_claude_callback_ack. It names the alternative and the condition that selects it. It stops short of stating when not to use this tool (e.g., before any callback_ready reply exists) or how to pick timeout_seconds.

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