Set up AI review
set-up-ai-review-toolCall when the person asks to set up, add or fix an AI review (Claude reviewing pull requests)
in this repository, or asks whether the one they added works. Every repository is already
reviewed by Coderbuds, which triages each diff and counts only on Minimal or Low risk changes
of up to 50 lines of code; this adds the team's own reviewer, which reads the whole repository
and counts on Low risk changes of up to 200. Returns state for the
repository — verified, not_reporting (the AI review check runs but never reaches Coderbuds,
usually a missing ANTHROPIC_API_KEY secret) or not_set_up — and, unless it is verified,
steps to carry out with the workflow file to commit. The person adds the API key
themselves; never ask for it or handle it. Open the workflow as a pull request: it runs on
that pull request, so call this tool again a few minutes later and state turns verified.
Pass repository (owner/name). Leave it out to set up several repositories at once: it then
lists the team's active repositories that are not verified, with steps that open one pull
request in each the person picks. reviewer is claude (default, the workflow Coderbuds
gives you), app (Copilot, CodeRabbit or Claude Code Review: nothing to commit) or own
(another reviewer, reporting to Coderbuds the way the Claude workflow does).
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": "set-up-ai-review-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reviewer | No | claude (default), app (Copilot, CodeRabbit or Claude Code Review) or own. | |
| repository | No | The repository to set up, as owner/name (from `git remote get-url origin`). Leave it out to list every active repository without an AI review and set up several at once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | What to do after the steps, or what is left once verified. | |
| team | Yes | Team name. | |
| state | No | verified, not_reporting or not_set_up. Null when called without a repository: see `repositories`. | |
| steps | Yes | What to do, in order. Empty once verified. | |
| reviewer | Yes | The reviewer the steps are for. | |
| workflow | No | The workflow file to commit. Null when there is nothing to commit. | |
| repository | No | The repository this is about, as owner/name. Null when called without one. | |
| repositories | Yes | Called without a repository: each active repository whose AI review is not verified, as repository (owner/name) and state. Empty otherwise. | |
| workflow_path | No | Where to commit `workflow`. Null when there is nothing to commit. |