Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

branch_compare

Read-onlyIdempotent

Compare two Git branches structurally to identify added, modified, deleted, and renamed files along with diff stats, commits ahead/behind, and conflict files.

Instructions

Compare two git branches structurally: added, modified, deleted, renamed files. Shows per-file diff stats, commits ahead/behind, and conflict files.

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": "branch_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoBase branch to compare from (default: main)
compareNoBranch to compare (default: current HEAD)

Output Schema

NameRequiredDescriptionDefault
baseYes
statsYes
compareYes
commitsAheadNo
commitsBehindNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and closed-world behavior, so the bar is lowered; the description still adds value by disclosing that the comparison is structural and that conflict files and commits ahead/behind are included. It does not discuss cost, limits on large branch pairs, or behavior for missing/unrelated branches.

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 tight sentences with zero filler; the core action is front-loaded and the output categories follow logically. Nothing needs trimming.

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?

With an output schema and full annotation coverage, the description needs only to establish purpose, which it does well for a two-optional-parameter read tool. The remaining gap is routing guidance toward sibling comparison tools, which is a guideline concern rather than a completeness blocker.

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% and the schema already documents both parameters including defaults ('main', 'current HEAD'). The description adds no directionality detail beyond what the schema provides, so baseline 3 applies.

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?

States a specific verb and resource ('Compare two git branches structurally') and enumerates the change categories it reports (added, modified, deleted, renamed) plus aggregate signals (ahead/behind, conflicts). That clearly separates it from a plain per-file diff tool like git_diff, though it does not name any sibling explicitly.

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

Usage Guidelines3/5

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

Usage is only implied by the description of outputs; there is no statement of when to prefer this over git_diff, git_branches, or change_impact, and no prerequisites or exclusions. The defaults in the schema (main / current HEAD) hint at typical use but are not guidance.

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