Skip to main content
Glama

gemini_review

Run an independent Gemini code review of a git diff, commit, or staged changes to identify candidate issues and verify each in the code before reporting.

Instructions

Independent code review of a git diff by Gemini (agy, subscription, read-only plan mode).

What to review (pick one; default = uncommitted changes vs HEAD): base="origin/main" for this branch, commit="" for one commit, staged=True for staged changes. intent: what the change is meant to do, in the author's words (default: commit messages). Do not put your own review opinions here; the point is an independent second look. models: agy models run in parallel (default gemini-4-neon-high; add gemini-4-hydrogen-high for a fast second vote). Findings on the same place are merged; agreed = how many models. Secret-looking lines stop the run with status STOPPED and nothing is sent; show those lines to the user and pass allow_secret_like=True only if they say it is fine. Takes minutes. Findings are candidates: trace each one in the code before reporting it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>"
    },
    "name": "gemini_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNo
repoYes
commitNo
intentNo
modelsNo
stagedNo
out_dirNo
session_idNo
allow_secret_likeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: read-only plan mode, subscription auth, multi-minute latency, parallel models with merged findings and an `agreed` count, and the secret-scan guard that aborts with status STOPPED before anything is sent. It leaves `out_dir` and `session_id` behavior entirely unexplained, which is a real gap for a tool that apparently persists artifacts or session state.

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?

Front-loaded with the purpose, then organized as a scannable set of parameter notes with a default stated inline. Telegraphic style is appropriate here and no line is 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?

For a nine-parameter, minutes-long, no-output-schema tool it covers the important surfaces: what gets reviewed, how findings are reported, the STOPPED abort path, and the caution that findings are candidates to be traced. The unexplained out_dir and session_id keep it from being fully complete.

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 documents six of nine parameters with real meaning: base/commit/staged selection semantics, the default for intent, the default model plus the fast-second-vote option, and the allow_secret_like override condition. Only repo (obvious), out_dir, and session_id are left undefined.

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 first sentence names a specific verb and resource ('Independent code review of a git diff by Gemini') plus the operating mode (subscription, read-only plan mode). That is enough to separate it from gemini_consult or gemini_analyze_media without opening any schema.

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

Usage Guidelines4/5

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

It spells out exactly how to pick the diff under review (default uncommitted vs HEAD, base=origin/main, commit=<sha>, staged=True) and warns against putting your own opinions in `intent`. It never names a sibling tool as an alternative, so the routing guidance is clear but not comparative.

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