Skip to main content
Glama

Code Churn Analysis

churn
Read-only

Track code rewriting activity to detect unstable files. High addition and deletion counts reveal areas needing refactoring or clearer requirements.

Instructions

Analyze code churn — how much code is being written and then rewritten. High churn indicates instability, unclear requirements, or code that is hard to get right. A file with 500 lines added and 400 deleted in a month is a red flag. NOTE: If the server was not started inside a git repo, you MUST provide repo_path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to look back (default: 90)
limitNoMax results to return (default: 20, max: 100)
repo_pathNoAbsolute path to the git repository to analyze. Required if Claude Code was not opened in a git repo.
path_filterNoFilter to files under this path
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the description's 'Analyze' is consistent. It adds context about interpreting churn as a red flag and the git requirement, but does not disclose other behavioral traits like authorization needs or rate limits. Given annotations, the added value is moderate.

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 three sentences, front-loaded with purpose, and each sentence serves a clear role: definition, interpretation, and usage note. No wasted words.

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 read-only analysis tool with 4 well-described parameters and annotations, the description covers the concept and a key requirement. Lack of output schema is noted, but the description is sufficient to guide usage.

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 coverage is 100%, so the baseline is 3. The description mentions the 'repo_path' requirement specifically, but does not add semantics beyond the schema for other parameters. The schema descriptions already cover the parameters adequately.

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 defines the resource ('code churn') and verb ('Analyze'), and provides a concrete example ('500 lines added and 400 deleted') that illustrates the concept. It effectively distinguishes the tool from its many siblings by focusing on churn measurement.

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

Usage Guidelines4/5

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

The description explains when to use the tool (high churn indicates instability) and includes a critical prerequisite: providing 'repo_path' if outside a git repo. However, it does not offer alternatives among sibling tools or explicitly state when not to use this tool.

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/hoangsonww/GitIntel-MCP-Server'

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