Skip to main content
Glama

aiworkhub_review_packet

Read-only

Returns a bounded read-only packet consolidating validation, quality-gate, output, finding and reachability evidence to decide a review-ready candidate; checklist view groups the review queue.

Instructions

READ-ONLY: ONE bounded review packet for a review_ready candidate.

Every fact a manager needs to decide a candidate is already persisted -- validation rows with their declared commands and output tails, the quality gate's checks and blockers, the worker MCP gate and its receipt-conformance verdict, required outputs, destructive-diff checks, the effective tier and its per-lens status, the deduped reviewer findings, the reachability observation -- spread across six nested objects on one card. This returns them together, under a measured byte bound.

Measured over all 419 real cards carrying a quality gate: min 1,662 B, p50 6,387 B, p90 8,813 B, max 13,799 B, 0 needing truncation. It replaces per candidate 10 task-scoped calls at p50 (p90 21) and, session-wide, 1,688 hand-written Bash re-derivations (pytest 611, attempt-artifact reads 242, task_queue.sqlite scripts 250, log tails 113, git diff 155) totalling 1.45 MB.

Nothing here is a verdict: every status was decided by the gate that recorded it, and accepting still runs the whole fold in aiworkhub_agent_accept_review. The one live computation is aiworkhub_agent_accept_preview -- itself read-only -- which aiworkhub_completion_inbox cannot call because it holds no launch authority, so it is computed here and passed in.

The decision section prefills the argument dicts for aiworkhub_agent_accept_review, one aiworkhub_manager_review_finding_dispose per undisposed finding, and aiworkhub_task_reject_review; it never picks a disposition or a verdict and is never dropped before an evidence section.

view="checklist" (NF-2026-00977) answers the queue-wide review question instead: the review queue grouped by topic/runner with validation commands, allowed_writes counts and a Codex-ready review checklist, optionally narrowed by task_ids. It takes task_ids/batch_label, never a request id.

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

Input Schema

NameRequiredDescriptionDefault
viewNopacket (default) for one candidate's bounded review packet, or checklist for the whole review queue grouped by topic/runner with its review checklist; any other value is refused.packet
task_idNoId of the task card that request belongs to; omit to resolve it from the request's status (the reply's task_id_source says which). Not accepted with request_ids.
task_idsNochecklist view only: keep only these task ids in codex_review_checklist; omit to keep every task waiting in the review queue.
max_bytesNoByte bound for the packet, default 90000; lowest-priority sections are dropped until it fits and listed under truncation.dropped_sections. With request_ids it is split evenly across the packets.
request_idNoId of the review_ready worker request to build the packet for; leave empty when request_ids is given, or pass task_id alone to use that card's current review request (the reply's request_id_source says which).
batch_labelNochecklist view only: free-text label echoed back as batch_label in the reply; it does not filter anything.
request_idsNoUp to 8 review_ready request ids to read in one call instead of request_id; returns {packets, per_packet_max_bytes}, each packet built exactly like a single call with the split budget, and a member that fails carries its own error without failing the batch.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.13.22
    • addedInput schema / properties / batch_label
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "checklist view only: free-text label echoed back as batch_label in the reply; it does not filter anything.",
      +  "title": "Batch Label"
      +}
    • addedInput schema / properties / task_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "checklist view only: keep only these task ids in codex_review_checklist; omit to keep every task waiting in the review queue.",
      +  "title": "Task Ids"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "default": "packet",
      +  "description": "packet (default) for one candidate's bounded review packet, or checklist for the whole review queue grouped by topic/runner with its review checklist; any other value is refused.",
      +  "enum": [
      +    "packet",
      +    "checklist"
      +  ],
      +  "title": "View",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.12.87
    • changedInput schema / properties / request_id / description
      Previous value: -"Id of the review_ready worker request to build the packet for; leave empty when request_ids is given."New value: +"Id of the review_ready worker request to build the packet for; leave empty when request_ids is given, or pass task_id alone to use that card's current review request (the reply's request_id_source says which)."
  3. Changed6 schema fields changedv0.12.85
    • changedInput schema / properties / max_bytes / description
      Previous value: -"Byte bound for the packet, default 90000; lowest-priority sections are dropped until it fits and listed under truncation.dropped_sections."New value: +"Byte bound for the packet, default 90000; lowest-priority sections are dropped until it fits and listed under truncation.dropped_sections. With request_ids it is split evenly across the packets."
    • addedInput schema / properties / request_id / default
      Added value: +""
    • changedInput schema / properties / request_id / description
      Previous value: -"Id of the review_ready worker request to build the packet for."New value: +"Id of the review_ready worker request to build the packet for; leave empty when request_ids is given."
    • addedInput schema / properties / request_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Up to 8 review_ready request ids to read in one call instead of request_id; returns {packets, per_packet_max_bytes}, each packet built exactly like a single call with the split budget, and a member that fails carries its own error without failing the batch.",
      +  "title": "Request Ids"
      +}
    • changedInput schema / properties / task_id / description
      Previous value: -"Id of the task card that request belongs to; omit to resolve it from the request's status (the reply's task_id_source says which)."New value: +"Id of the task card that request belongs to; omit to resolve it from the request's status (the reply's task_id_source says which). Not accepted with request_ids."
    • removedInput schema / required
      Removed value: -[
      -  "request_id"
      -]
  4. Changed3 schema fields changedv0.12.67
    • addedInput schema / properties / max_bytes / description
      Added value: +"Byte bound for the packet, default 90000; lowest-priority sections are dropped until it fits and listed under truncation.dropped_sections."
    • addedInput schema / properties / request_id / description
      Added value: +"Id of the review_ready worker request to build the packet for."
    • addedInput schema / properties / task_id / description
      Added value: +"Id of the task card that request belongs to; omit to resolve it from the request's status (the reply's task_id_source says which)."
  5. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses byte-bound behavior with drop ordering (lowest-priority sections dropped, listed under truncation.dropped_sections), that 'decision' is prefilled and never dropped before an evidence section, and that in batch mode a failing member carries its own error without failing the batch. It also characterizes the checklist view's grouping output and its refusal of request ids. This is substantive behavioral context the annotations do not carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the read-only, bounded framing and organized into packet-vs-checklist paragraphs, but it is long and padded with background statistics (1,688 hand-written Bash re-derivations, pytest 611, 1.45 MB) that do not change an invocation decision. The p50/p90 byte numbers support max_bytes choice; the broken-out derivation tallies do not earn their space.

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?

An output schema exists, so return values need no prose explanation; the description still supplies the cross-call picture an agent needs: what the packet aggregates, truncation semantics, batch failure isolation, and how the decision block feeds the three sibling write tools. Nothing material for correct invocation is missing for a 7-parameter tool with two views.

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 schema already documents each parameter; the baseline would be 3. The description adds cross-parameter meaning the schema alone does not make salient: that the checklist view takes task_ids/batch_label and never a request id, that the decision section prefills argument dicts for accept_review, finding_dispose and reject_review, and that return context explains why accept_preview is computed here. The measured-size statistics are not parameter semantics but do bound expectations for max_bytes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names the resource and its scope precisely ('ONE bounded review packet for a review_ready candidate'), and the body clarifies it is an aggregation of six nested card objects returned under a byte bound. It is differentiated from accept_review, accept_preview and completion_inbox by role. The verb is only implicit at the top ('READ-ONLY: ONE bounded review packet...'), resolved later with 'This returns them together', which keeps it just short of a clean verb+resource statement.

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?

It explicitly routes the agent: use accept_review to actually accept, accept_preview is the only live computation and is invoked here on behalf of completion_inbox which lacks launch authority, and view="checklist" is the answer to the queue-wide question. It also states the when-not case ('Nothing here is a verdict' / 'never picks a disposition'), so an agent cannot mistake this for the decision tool.

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