Skip to main content
Glama

change_coupling

Identify files that frequently change together in a Git repository, with support and confidence scores, to reveal hidden dependencies and assess coupling risk.

Instructions

Which files change together with this file? For each other file: support (commits touching both), confidence (support / commits touching this file) and reverse confidence. Mass commits (more than max_files_per_commit files) are ignored and renames are followed. High confidence between files with no import relation is a hidden dependency.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "change_coupling"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoHEAD
pathYes
repoNo
limitNo
sinceNo
max_commitsNo
min_supportNo
min_confidenceNo
max_files_per_commitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and while it discloses several behavioral traits (mass commits above max_files_per_commit are ignored, renames are followed, support/confidence are defined), it never states that this is a read-only historical analysis, nor does it hint at cost — max_commits defaults to 20000 across history, which is a meaningful performance signal an agent would want before calling.

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?

Four sentences, front-loaded with the question the tool answers, then the output metric definitions, then the caveats. No sentence is filler and the dependency-interpretation hint lands at the end where it is most actionable.

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?

An output schema exists, so return-value explanation is not required, and the metric definitions cover much of the semantic ground. But for a 9-parameter tool with zero schema coverage, the description leaves too many knobs (limit, since, max_commits, ref, repo) for an agent to set meaningfully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 9 parameters, so the description must compensate. It clarifies only max_files_per_commit and, indirectly, min_support/min_confidence via the support and confidence definitions; ref, repo, limit, since and max_commits are left entirely unexplained, including their filtering and truncation effects on results.

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 opening question 'Which files change together with this file?' names the exact analysis performed and its unit of output (each other file with support and confidence). This is unmistakably distinct from file_history, churn_timeline and hotspots in the sibling set.

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 implied rather than stated: the closing line 'High confidence between files with no import relation is a hidden dependency' tells an agent the intended finding. However, no explicit when-to-use / when-not-to-use framing or reference to an alternative sibling tool is given.

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