Repo health summary
repo_health_summaryCapture a one-call Git working-tree snapshot: branch, upstream ahead/behind, staged/unstaged/untracked counts, recent commits, and uncommitted diffstat for quick repository health checks.
Instructions
One-call snapshot of a git working tree: branch, ahead/behind vs upstream, staged/unstaged/untracked counts, recent commits, and the uncommitted diffstat.
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": "repo_health_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository path | |
| commits | No | Number of recent commits to include (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ahead | Yes | ||
| clean | Yes | ||
| behind | Yes | ||
| branch | Yes | ||
| staged | Yes | ||
| changes | Yes | ||
| retained | No | ||
| unstaged | Yes | ||
| untracked | Yes | ||
| recentCommits | Yes |