List Project Commits Tool
list_project_commits_toolList commits for a GitLab project, with optional filters for branch or tag, file path, date range, and pagination to review repository history.
Instructions
List repository commits for a GitLab project.
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": "list_project_commits_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| path | No | Only commits touching this file path | |
| since | No | Only commits after this date (ISO 8601) | |
| until | No | Only commits before this date (ISO 8601) | |
| per_page | No | Results per page, max 100 (default: 20) | |
| ref_name | No | Branch or tag name (default: default branch) | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||