Skip to main content
Glama

aiworkhub_completion_inbox

Read-only

Read review queue, operational failures, stale processing, runner mismatches, and latest validation facts in one read-only call for Codex orchestration.

Instructions

READ-ONLY: combined completion-inbox facts for Codex orchestration.

Use this for the review queue together with failures and stale work; use aiworkhub_review_packet for one candidate's full review evidence.

Returns five facets in one call: review_queue (tasks awaiting Codex review; this tool owns the review-queue question, NF-2026-00977), operational_failures (legacy finalizer failures eligible for retained retry), stale_processing (claimed tasks with no recent artifact/validation activity, default threshold 24h), runner_mismatch_warnings (batch-token mismatches between a runner name and the task_id it claimed -- a local pure replica of AITools/taskctl.py::_runner_task_batch_mismatch), and latest_validation_facts (the most recently recorded validation_status/ validation_error/blocker_reason per task). The MCP reply is then folded: live processes only, no blocked facts.

FROZEN READ-ONLY CONTRACT -- no write-gate toggle, no mutation parameters. Only issues taskctl list/taskctl show (both read-only). Never calls taskctl done/review/start/auto-pickup/add-card/export-jsonl. Never mutates queue or audit state. Never launches agents or processes beyond the existing taskctl.py read-only child-process calls.

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_completion_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum cards read per queue status (pending, processing, review, blocked); default 200, clamped to 1-500.
topicNoOnly include tasks with this topic; omit to include every topic.
stale_processing_hoursNoHours without recorded activity after which a processing task is listed under stale_processing, oldest first; default 24.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.12.67
    • addedInput schema / properties / limit / description
      Added value: +"Maximum cards read per queue status (pending, processing, review, blocked); default 200, clamped to 1-500."
    • addedInput schema / properties / stale_processing_hours / description
      Added value: +"Hours without recorded activity after which a processing task is listed under stale_processing, oldest first; default 24."
    • addedInput schema / properties / topic / description
      Added value: +"Only include tasks with this topic; omit to include every topic."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes far beyond them by naming the exact read-only subcommands it issues (taskctl list/show), listing every mutating subcommand it never calls, stating that the reply is folded to live processes with no blocked facts, and reproducing the internal mismatch check. That is precisely the kind of side-effect and output-shaping disclosure annotations cannot carry.

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?

The facet list is front-loaded after the one-line purpose statement, which is the right ordering for a scanning agent. However, the read-only guarantee is restated three separate ways ('no write-gate toggle, no mutation parameters', 'Never calls…', 'Never mutates queue or audit state'), and internal references (NF-2026-00977, AITools/taskctl.py::_runner_task_batch_mismatch) are noise for tool selection.

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?

With an output schema present, return values need not be explained, yet the description still characterises each facet well enough to choose the tool. For a 3-parameter, zero-required, read-only aggregate tool, nothing needed for correct invocation is missing.

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 real semantics: it explains that stale_processing uses 'claimed tasks with no recent artifact/validation activity' with a 24h default, and that the threshold drives oldest-first ordering. limit's clamping (1-500) is left entirely to the schema, so it is not a full 5.

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 opens with a specific verb and resource ('combined completion-inbox facts') and enumerates all five returned facets (review_queue, operational_failures, stale_processing, runner_mismatch_warnings, latest_validation_facts). It explicitly distinguishes itself from aiworkhub_review_packet (one candidate's evidence vs. queue-wide facts), so an agent can separate the two without opening either schema.

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?

It gives a direct usage sentence ('Use this for the review queue together with failures and stale work') and names the alternative for the narrower question ('use aiworkhub_review_packet for one candidate's full review evidence'). The routing condition is clear, though it never states a case where this tool should be avoided or how it relates to the dispatcher/health siblings.

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