Skip to main content
Glama
ArthDh

code-reviewer-mcp

by ArthDh

review_file

Reviews a specific file against code review persona standards to produce feedback for enforcing configurable code review rules.

Instructions

Review a specific file against the code review persona standards.

Args: file_path: Path to the file to review (relative or absolute). 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: Code review feedback for the specified file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
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
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says nothing about whether this is read-only, whether it invokes an LLM, latency/cost, permission needs, or what happens if persona_file is missing or invalid; the 'Returns' line is largely redundant given an output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one sentence, followed by a compact Args/Returns block. The persona_file example is the only mildly verbose element and it earns its place by clarifying the expected path format.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema covers return values, so the 'Returns' line is unnecessary, and parameters are well documented. However, with no annotations at all, the definition omits key operational context (side effects, persona resolution behavior, failure modes), leaving it adequate but incomplete.

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?

With 0% schema description coverage, the description must compensate, and it does: it explains file_path accepts relative or absolute paths, working_directory defaults to the current directory, and persona_file points to a custom persona markdown with a concrete example and a default fallback. Only minor gaps remain (e.g. no stated constraints on file_path).

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 (review) and resource (a specific file), which implicitly separates it from the sibling review_diff that operates on a diff. It does not explicitly name a sibling tool, so it falls short of the top score, but the scope is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied: the presence of a required file_path suggests reviewing one file at a time, and persona_file suggests customization. There is no explicit guidance on when to prefer this over review_diff or generate_review_report, nor any prerequisite (e.g. persona file must exist).

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