Skip to main content
Glama
AleBrito124356

mcp-git-historian

Churn hotspots

hotspots
Read-onlyIdempotent

Rank frequently changed files by commit count and added/deleted lines, following renames, to flag refactoring or extra-review candidates from churn percentiles.

Instructions

Rank the most frequently changed files (churn hotspots): commits touching each file and total lines added/deleted, following renames (older commits under a former name count towards the current name, listed in 'renamed_from'). Deleted files and merge commits are excluded. Each row has 'churn_percentile'; only files with >= 3 commits in the top decile carry a 'hint' marking them as refactoring / extra-review candidates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum number of files to return.
sinceNoOnly count commits newer than this git date expression, e.g. '1 year ago', '6 months ago', '2025-01-01'. Empty string = all history.1 year ago
repo_pathYesAbsolute path to a local git repository, or to any folder inside one (a sub-folder scopes the analysis to it).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real edge-case behavior beyond them: renames are followed (old commits counted under current name), deleted files and merge commits are excluded, and the 'hint' only appears for files with >=3 commits in the top decile. Missing details like large-repo performance or output ordering limit it below 5.

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?

A single front-loaded sentence leads with the core action before enumerating behavior. It is dense but every clause (rename handling, exclusions, hint rule) carries information, so little is wasted.

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 present, return-value explanation is unnecessary, and the description covers exclusions, rename handling, and the derived 'hint'/'churn_percentile' fields. It is complete for calling the tool correctly; only sibling-relative routing guidance is absent.

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 top/since/repo_path are already fully documented. The description adds only indirect meaning (top-decile and >=3-commit thresholds that relate to 'top') rather than syntax or format guidance 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?

States a specific verb (rank) and resource (frequently changed files / churn hotspots) and enumerates the metrics returned (commits per file, lines added/deleted). The scope is clearly distinguishable from siblings like file_history or change_coupling, though it never names an alternative to route against.

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 when the tool is useful (identifying churn-heavy files as refactoring/extra-review candidates) but gives no explicit when-to-use or when-not-to-use guidance relative to siblings such as bus_factor, knowledge_risk, or change_coupling.

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