Get Commit History
get_commit_historyRetrieve the current repository's commit history with optional filters by branch, file path, date, scope, and impact, helping you audit changes and trace project context.
Instructions
Retrieve commit history for the current repository
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": "get_commit_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git reference (branch, tag, commit). Default: HEAD | |
| path | No | Filter by specific file or directory path | |
| scope | No | Filter commits by a specific scope | |
| since | No | Show commits more recent than a specific date (e.g. "2023-01-01") | |
| sortBy | No | Sort commits by date or impact score | |
| maxCount | No | Maximum number of commits to return. Default: 50 | |
| use_test_db | No | ||
| techDebtAudit | No | Filter for high impact commits with low trust or missing validation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| commits | No | ||
| details | No | Additional error context | |
| success | Yes | ||
| category | No | Error category (validation, query, connection, internal) | |
| changelog | No | ||
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |