Skip to main content
Glama

aiworkhub_task_codex_handoff

Read-only

Generates a read-only JSON or Markdown handoff report for tasks awaiting Codex review, summarizing risks, allowed writes, validation commands, and scoped stage commands without mutating the queue.

Instructions

READ-ONLY: Codex-ready HANDOFF report for review-queue tasks.

Use this for the handoff as JSON, or with format=markdown for the same report plus a deterministic markdown field (a compact review packet); use aiworkhub_review_packet for one candidate's full review evidence.

For each task waiting on Codex review, summarizes task_id, runner, topic, allowed_writes, validation commands, derived risks, commit-hygiene status, and a scoped stage/finalize command list — WITHOUT mutating the parent task queue.

FROZEN READ-ONLY CONTRACT — no write-gate toggle, no mutation parameters. Never calls taskctl done/review/start/auto-pickup/add-card. Never mutates queue or audit state. Never launches agents or processes. Writes remain default-off regardless of input values.

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

Input Schema

NameRequiredDescriptionDefault
formatNojson (default) for the report alone, or markdown to add the rendered markdown and markdown_contract fields; any other value is refused.json
task_idsNoOnly report these task ids; omit for every task waiting in the review queue.
batch_labelNoFree-text label echoed back as batch_label in the reply; it does not filter anything.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.13.2
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "json",
      +  "description": "json (default) for the report alone, or markdown to add the rendered markdown and markdown_contract fields; any other value is refused.",
      +  "title": "Format",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.12.67
    • addedInput schema / properties / batch_label / description
      Added value: +"Free-text label echoed back as batch_label in the reply; it does not filter anything."
    • addedInput schema / properties / task_ids / description
      Added value: +"Only report these task ids; omit for every task waiting in the review queue."
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description goes well beyond them by enumerating the non-effects: no write-gate toggle, no mutation parameters, never calls taskctl done/review/start/auto-pickup/add-card, never mutates queue or audit state, never launches agents or processes, writes default-off regardless of input. That is precisely the behavioral contract an agent needs before deciding to call a queue-adjacent tool.

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 read-only guarantee is correctly front-loaded, and the field enumeration is compact. The closing 'FROZEN READ-ONLY CONTRACT' paragraph partially restates the READ-ONLY prefix and repeats the non-mutation point ('Never mutates queue or audit state' vs 'Writes remain default-off'), though each clause does name a distinct prohibited operation.

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, return values need no explanation, and the description covers scope, alternatives, format modes and the read-only contract. Minor residual gaps (report size for large queues, pagination or truncation behavior when no task_ids are supplied) are not addressed but are low-risk given the strict read-only profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already carries format (json vs markdown, other values refused), task_ids (omit for all queued tasks) and batch_label (echoed, non-filtering). The description adds only marginal meaning — 'deterministic markdown field (a compact review packet)' and the framing of the report contents — which is not enough to lift it above the baseline for a fully documented 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?

The opening line names a specific verb and resource ('Codex-ready HANDOFF report for review-queue tasks') and the body enumerates exactly what is summarized: task_id, runner, topic, allowed_writes, validation commands, derived risks, commit-hygiene status and stage/finalize commands. It also distinguishes itself from the sibling aiworkhub_review_packet ('for one candidate's full review evidence'), so an agent can separate the two without opening a schema.

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?

'Use this for the handoff as JSON, or with format=markdown for the same report plus a deterministic markdown field' states the selection condition for the format, and the explicit contrast with aiworkhub_review_packet states when not to use it. The scope of 'for each task waiting on Codex review' plus the task_ids filter leaves no ambiguity about which tasks it operates on.

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