Skip to content

Review Loop Tools

Alessio Rocchi edited this page Jan 27, 2026 · 1 revision

Review Loop Tools

6 MCP tools for adversarial review loops.


Tools

review_loop_start

Start adversarial review loop (coder ↔ adversarial).

Input:

{
  "code": "function to review",
  "maxIterations": 3,
  "sessionId": "session-id"
}

Output:

{
  "success": true,
  "loop": {
    "id": "loop-id",
    "status": "approved",
    "iteration": 2,
    "finalVerdict": "APPROVED"
  },
  "finalCode": "...",
  "message": "Code approved after 2 iteration(s)"
}

review_loop_status

Get current status of review loop.

Input:

{
  "loopId": "loop-id"
}

review_loop_abort

Stop a running review loop.

Input:

{
  "loopId": "loop-id"
}

review_loop_issues

Get detailed issues from all reviews.

Input:

{
  "loopId": "loop-id"
}

Output:

{
  "reviews": [
    {
      "iteration": 1,
      "verdict": "NEEDS_CHANGES",
      "issueCount": 2,
      "issues": [...]
    }
  ]
}

review_loop_list

List all active review loops.

Output:

{
  "count": 2,
  "loops": [...]
}

review_loop_get_code

Get current code from loop.

Input:

{
  "loopId": "loop-id"
}

Related:

Clone this wiki locally