git log
git_logLists Git commits in reverse chronological order, showing hash, date, author, and subject. Scope history to a file or directory and set a limit to inspect repository changes.
Instructions
List the newest commits (hash, date, author, subject), newest first. Read-only. Use path= to scope to a file or directory, limit= to cap the number of commits (max 100).
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": {
"repo": "<repo>"
},
"name": "git_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File or directory to scope the history to | |
| repo | Yes | Absolute path to a git working tree, inside MCP_ALLOWED_ROOTS | |
| limit | No | Number of commits to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path the history was scoped to, null for the whole tree | |
| commits | Yes |