Skip to main content
Glama

Set up AI review

set-up-ai-review-tool
Read-onlyIdempotent

Call 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

NameRequiredDescriptionDefault
reviewerNoclaude (default), app (Copilot, CodeRabbit or Claude Code Review) or own.
repositoryNoThe 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

NameRequiredDescriptionDefault
nextYesWhat to do after the steps, or what is left once verified.
teamYesTeam name.
stateNoverified, not_reporting or not_set_up. Null when called without a repository: see `repositories`.
stepsYesWhat to do, in order. Empty once verified.
reviewerYesThe reviewer the steps are for.
workflowNoThe workflow file to commit. Null when there is nothing to commit.
repositoryNoThe repository this is about, as owner/name. Null when called without one.
repositoriesYesCalled without a repository: each active repository whose AI review is not verified, as repository (owner/name) and state. Empty otherwise.
workflow_pathNoWhere to commit `workflow`. Null when there is nothing to commit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / repository / description
      Previous value: -"The repository you are working in, as owner/name (from `git remote get-url origin`)."New value: +"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."
    • removedInput schema / required
      Removed value: -[
      -  "repository"
      -]
    • addedOutput schema / properties / repositories
      Added value: +{
      +  "description": "Called without a repository: each active repository whose AI review is not verified, as repository (owner/name) and state. Empty otherwise.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / repository / description
      Previous value: -"The repository this is about, as owner/name."New value: +"The repository this is about, as owner/name. Null when called without one."
    • changedOutput schema / properties / repository / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / state / description
      Previous value: -"verified, not_reporting or not_set_up."New value: +"verified, not_reporting or not_set_up. Null when called without a repository: see `repositories`."
    • changedOutput schema / properties / state / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "team",
      -  "repository",
      -  "state",
      -  "reviewer",
      -  "steps",
      -  "next"
      -]New value: +[
      +  "team",
      +  "reviewer",
      +  "repositories",
      +  "steps",
      +  "next"
      +]
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and idempotentHint, yet the description adds substantial context: the enumerated state values, the likely cause of not_reporting (missing ANTHROPIC_API_KEY), the async verification cadence, and the hard rule that the person supplies the API key and the agent must never request or handle it. One ambiguity remains: 'Open the workflow as a pull request' reads like a mutation, which sits oddly with readOnlyHint=true even though the description elsewhere says the tool returns steps for the caller to carry out.

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?

The trigger is correctly front-loaded, but the remainder is one dense paragraph mixing five distinct concerns: the Coderbuds-vs-team comparison, state values, API key policy, the PR verification loop, and the multi-repository mode. Every sentence carries information, but the lack of structure makes it easy to miss the key-handling constraint buried mid-paragraph.

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?

For a two-parameter tool with an output schema, the description covers everything an agent needs: when to call it, what state means, what to do on a non-verified result, the async re-check, the API key boundary, and the bulk mode. The return-value explanation is partly redundant with the output schema but functions as actionable interpretation rather than duplication.

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 goes beyond the schema by explaining the consequence of omitting repository (it lists active unverified repositories and returns steps that open one PR in each the person picks) and by defining what each reviewer value means in practice (claude = Coderbuds-supplied workflow to commit, app = nothing to commit, own = another reviewer reporting the same way).

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+resource and an explicit trigger: set up, add or fix an AI review (Claude reviewing pull requests), or check whether one already works. It also distinguishes this from the baseline Coderbuds triage review (Minimal/Low risk up to 50 lines) versus the team's own reviewer (whole repo, Low risk up to 200 lines), so an agent can tell exactly what capability this adds.

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?

Trigger conditions are spelled out in the user's own terms ('asks to set up, add or fix', 'asks whether the one they added works'), and the follow-up pattern is explicit: open the workflow as a PR, then call the tool again a few minutes later so state turns verified. Omission behavior (leave repository out to work across several repositories) is also explained as an alternative mode.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources