gemini_review
Review code changes, git diffs, or specific files with Gemini to get a second opinion and actionable comments with severity levels before committing.
Instructions
Get a code review from Gemini on specific files or a git diff. USE THIS TOOL WHEN: (1) You want a second opinion on code you just wrote or are about to commit. (2) You need to review a large diff that would consume too many tokens to analyze yourself. (3) You want a focused review on a specific aspect like performance, error handling, or readability. (4) You need to review multiple files together to check for cross-file consistency. This tool differs from gemini_analyze: it is designed for reviewing CHANGES (diffs, specific files) rather than analyzing an entire codebase. It provides actionable review comments with severity levels.
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": "gemini_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | A git diff string to review (e.g., output of `git diff` or `git diff --staged`). Provide this OR file_paths, not both. Preferred for reviewing changes before commit. | |
| model | No | Override the default Gemini model. If omitted, uses the server default. | |
| file_paths | No | Array of absolute file paths to review. Binary files are automatically skipped. Provide this OR diff, not both. | |
| review_focus | No | What aspect to focus the review on. Examples: "performance", "error handling", "readability", "security", "concurrency", "API design", "test coverage". If omitted, performs a general-purpose code review. |