get_coupling_trend
Analyze historical coupling metrics (Ca, Ce, instability) for a file to determine if it is stabilizing or destabilizing over time.
Instructions
File coupling over git history: Ca/Ce/instability at past commits. Shows if a module is stabilizing or destabilizing. Requires git. Use to track module stability over time. For current coupling snapshot use get_coupling instead. Read-only. Returns JSON: { file, snapshots: [{ commit, date, ca, ce, instability }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | File path to analyze | |
| since_days | No | Analyze last N days (default: 90) | |
| snapshots | No | Number of historical snapshots (default: 6) |