Skip to main content
Glama

get_impact_from_diff

Analyze a diff or Git changeset to identify impacted files and dependencies, enabling targeted impact assessment before merging changes.

Instructions

Aggregates impact analysis across a diff or Git changeset. Provide a diff string, or let it use git to discover changed files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for git diff/app
diffNoUnified diff or name-only list of files
src_dirNoSource directory to scan for dependenciessrc
base_refNoBase git ref (default: HEAD)HEAD
head_refNoHead git ref (optional)
scan_dirsNoOptional list of directories to scan (relative to project root unless absolute). Overrides src_dir.
project_rootNoProject root directory (defaults to cwd if omitted)
ignore_patternsNoRegex patterns for files to ignore (applied to normalized paths).
include_untrackedNoInclude untracked files from git

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description must carry the full behavioral disclosure burden. It reveals that the tool can use git to discover changed files, but it does not disclose what 'impact analysis' outputs, whether there are side effects, prerequisites like an initialized git repository, or failure modes. This is a meaningful gap for a tool with no safety annotations.

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 two sentences with no filler or redundancy. The main purpose is front-loaded and the additional mode detail is directly useful.

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

Completeness2/5

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

Given the tool has 9 optional parameters, no output schema, and no annotations, the description is too thin to be complete. It does not explain what the returned impact analysis looks like, how the git discovery mode behaves across refs, or what happens when neither diff nor a valid git context is available.

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 9 parameters. The description adds a small amount of context by clarifying that either 'diff' or git-based discovery can be used, but it does not materially enrich parameter meaning beyond the schema.

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?

The description states a specific verb ('aggregates') and a clear resource ('impact analysis across a diff or Git changeset'), making the tool's core function understandable. It is not a tautology and is distinct enough by its diff focus, though it does not explicitly contrast with the similar sibling get_impact.

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 by describing two invocation modes: providing a diff string or letting git discover changed files. It does not explicitly state when to prefer this tool over siblings or when not to use it, but the diff-oriented framing gives reasonable contextual guidance.

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