Skip to main content
Glama

compare_branches

Compare two Git branches at symbol level to identify additions, modifications, and removals with risk assessment and blast radius analysis.

Instructions

Compare two branches at symbol level: what was added, modified, removed. Resolves merge-base automatically, groups by category/file/risk, includes blast radius and risk assessment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchYesBranch to compare (e.g. "feature/payments")
baseNoBase branch (default: "main")
include_blast_radiusNoInclude blast radius per symbol (default true)
max_blast_depthNoMax blast radius depth (default 3)
group_byNoGroup results by: file, category (added/modified/removed), or risk level (default: category)
Behavior4/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 effectively describes key behaviors: automatic merge-base resolution, grouping capabilities, and inclusion of blast radius and risk assessment. However, it doesn't mention performance characteristics, error conditions, or output format details, leaving some gaps for a tool with 5 parameters.

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?

The description is a single, dense sentence that efficiently communicates the tool's core functionality without any wasted words. It's front-loaded with the primary purpose and includes all key features in a logical flow from comparison to resolution to grouping to additional assessments.

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 tool with 5 parameters, 100% schema coverage, but no annotations and no output schema, the description provides good contextual completeness. It covers the tool's purpose, key behaviors, and output features (grouping, blast radius, risk assessment). The main gap is the lack of output format details, which would be important given the complexity of the comparison results.

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?

The schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds minimal parameter semantics beyond the schema, mentioning 'blast radius' and 'risk assessment' which relate to parameters but don't provide additional syntax or format details. This meets the baseline expectation when schema coverage is complete.

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 ('compare', 'resolves', 'groups', 'includes') and resources ('two branches at symbol level'), distinguishing it from siblings like 'get_changed_symbols' or 'get_change_impact' by emphasizing automatic merge-base resolution and risk assessment features.

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?

The description implies usage context through phrases like 'groups by category/file/risk' and 'includes blast radius and risk assessment', suggesting it's for analyzing code changes with risk evaluation. However, it doesn't explicitly state when to use this tool versus alternatives like 'assess_change_risk' or 'get_change_impact', nor does it mention prerequisites or exclusions.

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/nikolai-vysotskyi/trace-mcp'

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