Skip to main content
Glama
lfylow
by lfylow

review_git_diff

Analyzes a git diff to identify bugs, security vulnerabilities, and improvement opportunities, providing a structured review with severity levels.

Instructions

Review a git diff for bugs, security issues, and improvements.

Accepts the output of git diff as plain text. Returns a structured review with severity levels (🔴 CRITICAL, 🟡 WARNING, đŸŸĸ SUGGESTION, â„šī¸ NOTE).

Example: git diff | review_git_diff

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diffYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, but description discloses output format (structured with severity levels). No contradictions.

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?

Two concise sentences plus example, front-loaded with purpose. No unnecessary text.

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

Completeness5/5

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

Given simplicity (one param, no annotations, has output schema), description covers input format, output format, and usage example completely.

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?

Only one parameter (diff), schema has no description (0% coverage). Description clarifies it accepts 'git diff' output as plain text, adding value beyond schema.

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?

Clearly states it reviews git diffs for bugs, security, and improvements, with a structured output. Distinct from siblings (code file/snippet review).

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?

Describes input (git diff output) and gives example usage. Implicitly distinguishes from siblings, but no explicit when-not to use.

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/lfylow/codereview-mcp'

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