Skip to main content
Glama

generate_ai_code_review

Generate AI-powered code reviews by analyzing project files, git diffs, or providing context. Supports custom prompts and models for tailored feedback.

Instructions

Generate AI-powered code review from context file, content, or project analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_file_pathNoPath to existing code review context file (.md)
context_contentNoDirect context content (for AI agent chaining)
project_pathNoProject path for direct analysis (generates context internally)
scopeNoReview scope when using project_path - 'recent_phase', 'full_project', 'specific_phase', 'specific_task'recent_phase
phase_numberNoPhase number for specific_phase scope
task_numberNoTask number for specific_task scope
task_listNoSpecific task list file to use (overrides automatic discovery)
default_promptNoCustom default prompt when no task list exists
output_pathNoCustom output file path for AI review. If not provided, uses default timestamped path
modelNoOptional Gemini model name (e.g., 'gemini-2.0-flash-exp', 'gemini-1.5-pro')
temperatureNoTemperature for AI model (default: 0.5, range: 0.0-2.0)
custom_promptNoOptional custom AI prompt to override default instructions
text_outputNoReturn review directly as text (default: true - for AI agent chaining)
auto_meta_promptNoAutomatically generate and embed meta prompt (default: true)
include_claude_memoryNoInclude CLAUDE.md files in context (default: true)
include_cursor_rulesNoInclude Cursor rules files in context (default: false)
thinking_budgetNoOptional token budget for thinking mode (if supported by model)
url_contextNoOptional URL(s) to include in context - can be string or list of strings

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full responsibility for behavioral transparency. It only states the tool generates a code review without disclosing any side effects, state changes, or security implications. For a tool with 18 parameters and multiple execution modes, this is insufficient.

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 description is a single sentence, which is concise but lacks important context for a complex tool. It is front-loaded with the verb and resource, but the brevity sacrifices completeness. Every word earns its place, but the sentence could be expanded to include key usage notes.

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

Completeness2/5

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

Despite high schema coverage and an output schema, the description fails to explain the output nature (e.g., a markdown report) or guide the agent on selecting the appropriate input mode. For a tool with 18 parameters and multiple sources, the description is too sparse to be fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% parameter description coverage, so the schema already documents each parameter. The description adds no extra meaning beyond what the schema provides, such as parameter interactions (e.g., precedence when multiple sources are given) or defaults interplay.

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?

The description clearly states the tool generates AI-powered code reviews from three sources: context file, content, or project analysis. However, it does not explicitly differentiate from sibling tools like 'ask_gemini' and 'generate_pr_review', missing an opportunity to clarify when to use this tool over others.

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?

The description provides no guidance on when to use this tool versus alternatives, nor does it specify when to choose one input source over another (context_file_path vs context_content vs project_path). No exclusions or prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nicobailon/gemini-code-review-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server