get_project_commits
Retrieve and filter GitLab repository commits by author, date range, file path, branch, and other criteria.
Instructions
List repository commits with filtering options
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": {
"project_id": "<project_id>"
},
"name": "get_project_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Retrieve every commit from the repository | |
| page | No | Page number for pagination (default: 1) | |
| path | No | Filter commits by file path | |
| order | No | List commits in order (default or topological) | |
| since | No | ISO 8601 date format (YYYY-MM-DDTHH:MM:SSZ) - commits after this date | |
| until | No | ISO 8601 date format (YYYY-MM-DDTHH:MM:SSZ) - commits before this date | |
| author | No | Filter commits by author name | |
| per_page | No | Number of results per page (max 100) | |
| ref_name | No | Branch, tag, or commit SHA | main |
| trailers | No | Parse and include Git trailers for every commit | |
| project_id | Yes | Project ID or path | |
| with_stats | No | Include commit stats (additions, deletions) | |
| first_parent | No | Follow only the first parent commit on merge commits |