Skip to main content
Glama

Files that change together

list_coupled_files
Read-onlyIdempotent

Identify which files usually change together to predict what an edit will drag along. Ranks co-change pairs by shared commit count, up to 50, with configurable support and confidence.

Instructions

Lists file pairs that keep landing in the same commits over the churn window, strongest first, at most 50. Use it before editing a file to learn what an edit drags along. Use list_duplicate_functions for copied code rather than co-change. It reads git log once per call, not the scored run. An empty list means no pair cleared both thresholds, not a missing run. A pair must clear both thresholds: min_support 5 needs five shared commits, min_confidence 0.5 means the rarer file moved with its partner half the time. repo defaults to the server's own root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNopath to the scored repo's root (default: the repo the server was started in)
min_supportNominimum shared commits before a pair counts (default 5)
min_confidenceNominimum P(pair changes together), 0 to 1 (default 0.5)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairsNopairs clearing both thresholds, ordered by support x confidence descending, at most 50
schemaNopayload schema version, 1
window_monthsNomonths of git history the pairs were counted over (the config's churn_window_months)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable behavioral context beyond that: it reads git log once per call rather than the scored run, an empty list means no pair cleared thresholds, and both thresholds must be cleared. No contradiction with 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?

Every sentence earns its place: purpose, use case, sibling distinction, performance behavior, empty-result semantics, and threshold semantics. The most important information is front-loaded.

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

Completeness5/5

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

For a read-only list tool with an output schema, annotations, and only three optional parameters, the description fully covers when to call it, what it returns at a high level, how to interpret empty results, cost implications, and parameter meanings. Nothing material is missing.

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

Parameters5/5

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

Schema coverage is 100%, and the description goes further by explaining what each parameter means operationally: min_support 5 requires five shared commits, min_confidence 0.5 means the rarer file moved with its partner half the time, and repo defaults to the server's own root. This helps the agent choose thresholds appropriately rather than treating them as opaque numbers.

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?

States a specific verb and resource: 'Lists file pairs that keep landing in the same commits over the churn window, strongest first, at most 50.' It also differentiates from list_duplicate_functions, so an agent can distinguish this tool from its sibling immediately.

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

Usage Guidelines5/5

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

Explicitly tells when to use it: 'Use it before editing a file to learn what an edit drags along.' It also gives a clear alternative and exclusion: 'Use list_duplicate_functions for copied code rather than co-change.'

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