Skip to main content
Glama
Kirachon

Context Engine MCP Server

by Kirachon

review_git_diff

Analyze git code changes automatically using AI to identify issues and provide structured findings with confidence scores for staged, unstaged, or branch comparisons.

Instructions

Review code changes from git automatically.

This tool combines git diff retrieval with AI-powered code review. It automatically:

  1. Retrieves the diff from git based on the target

  2. Analyzes the changes for issues

  3. Returns structured findings with confidence scores

Target Options:

  • 'staged' (default): Review staged changes (git diff --staged)

  • 'unstaged': Review unstaged working directory changes

  • 'head': Review all uncommitted changes (staged + unstaged)

  • '': Review changes compared to a branch (e.g., 'main')

  • '': Review a specific commit

Example usage:

  • Review staged changes: { "target": "staged" }

  • Review against main: { "target": "main" }

  • Review a commit: { "target": "abc1234" }

  • Review feature branch: { "target": "feature/login", "base": "main" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNoTarget to review: 'staged', 'unstaged', 'head', branch name, or commit hash. Default: 'staged'staged
baseNoBase reference for branch comparisons (e.g., main, develop)
include_patternsNoFile patterns to include in review (glob patterns)
optionsNoReview options (same as review_changes tool)
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the three-step automated process (retrieve diff, analyze changes, return findings) which is helpful, but doesn't cover important behavioral aspects like error handling, performance characteristics, rate limits, authentication requirements, or what happens when the tool fails. The description doesn't contradict any annotations since none exist.

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

Conciseness4/5

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

The description is well-structured with clear sections (overview, target options, examples) and efficiently conveys information. However, some sentences could be more concise, and the example section is quite detailed. Overall, most content earns its place, but there's minor room for tightening.

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?

For a tool with 4 parameters, nested objects, no annotations, and no output schema, the description provides adequate but incomplete context. It explains the workflow and target options well, but lacks information about return values, error conditions, performance expectations, and how findings are structured. The description compensates somewhat for the missing output schema but not fully.

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?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds some value by explaining 'target' options in more detail with examples, but doesn't provide additional semantic context beyond what's in the schema descriptions. The mention that 'options' are 'same as review_changes tool' is helpful but minimal.

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 description clearly states the tool's purpose with specific verbs ('review code changes from git automatically') and resources ('git diff retrieval with AI-powered code review'). It distinguishes from siblings like 'review_changes' and 'review_diff' by emphasizing the automated, multi-step process combining git operations with AI analysis.

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?

The description provides clear context for when to use this tool through the 'Target Options' section and examples, showing different scenarios (staged changes, branch comparisons, specific commits). However, it doesn't explicitly state when NOT to use it or mention alternatives among sibling tools like 'review_changes' or 'review_diff'.

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/Kirachon/context-engine'

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