Skip to main content
Glama

git_file_hotspots

Identify frequently modified files across recent Git commits to reveal code hotspots and prioritize review or refactoring.

Instructions

Identify the most frequently modified hotspot files across recent commits.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoRepository path.
topNNoNumber of top hotspot files to return (default 10).
commitCountNoNumber of recent commits to scan (default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the core behavior (ranking files by modification frequency over recent commits), which implies a read-only analytical operation. However, it says nothing about cost of scanning many commits, whether results include counts or rank, or whether history rewriting is ever touched.

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?

A single front-loaded sentence with no filler; the key concept (hotspot files, recent commits) appears immediately. Nothing in it is redundant with the title or wasteful.

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 3-parameter, no-annotation, no-output-schema analysis tool, the description covers what it does but not how results are shaped or how expensive the scan is. It is minimally adequate rather than complete, though the 100%-covered schema offsets some of the gap.

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 all three parameters (cwd, topN, commitCount) are already documented with defaults in the schema. The description adds no further meaning such as how commitCount interacts with merge commits or whether cwd defaults to the server's working directory.

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 uses a specific verb ('Identify') plus a specific resource ('most frequently modified hotspot files') and scope ('across recent commits'), so an agent can tell this is a churn/ranking analysis rather than a diff or lint tool. It does not name any sibling to differentiate from, so it stops short of a 5.

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: an agent can infer this is the tool for finding frequently-churned files, but there is no statement of when to prefer it over git_change_risk_summary or git_search_commits, and no exclusions or prerequisites (e.g. repository must exist at cwd).

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