Skip to main content
Glama
ArthDh

code-reviewer-mcp

by ArthDh

generate_review_report

Generate a comprehensive code review report as a markdown file. Compare git diffs against a base branch using custom reviewer personas.

Instructions

Generate a comprehensive code review report as a markdown file.

Args: base_branch: The base branch to compare against (default: development). output_file: Path to write the report (default: .code_review.md in repo root). working_directory: Working directory (defaults to current directory). persona_file: Path to a custom reviewer persona markdown file. Example: "notebooks/code_reviewer_persona.md" If not provided, uses the default persona.

Returns: Path to the generated report file and a summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_branchNodevelopment
output_fileNo
persona_fileNo
working_directoryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose some behavior: defaults for every parameter, the persona fallback, and the return shape (path + summary). It does not state whether an existing output file is overwritten, what permissions or repo state are required, or that this performs file-system writes — meaningful gaps for a side-effecting 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?

Front-loads the one-line purpose, then uses Args/Returns blocks, which matches how the schema is organized. Slightly verbose in the persona_file entry but every line carries information; no filler.

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?

Covers all parameters and the return value, and an output schema exists so return detail is not strictly required. The remaining gap is workflow placement — when to run this relative to the review_* siblings — for an agent orchestrating a multi-step review.

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 0%, so the description must compensate, and it largely does: all four parameters are explained with defaults (base_branch=development, output_file=.code_review.md) plus a concrete persona_file example path. Minor gaps remain, e.g., accepted formats for output_file and relative-vs-absolute path handling.

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?

States a specific verb and artifact: 'Generate a comprehensive code review report as a markdown file.' That distinguishes it from siblings like review_diff and review_file, which analyze rather than produce a report artifact. However, it never explicitly names those siblings or contrasts the workflows, so difference must be inferred.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use framing: nothing says whether this is the final aggregation step after review_diff/review_file, or what prerequisites (e.g., changed files needing review) exist. The Args section describes inputs but gives no selection guidance against get_review_checklist or review_diff.

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