list_commits
View commit history for a branch or SHA in a GitLab repository. Pass owner, repo, and optional branch to retrieve paginated commits with page and per-page limits.
Instructions
Get list of commits of a branch in a GitLab repository
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Branch name or commit SHA | |
| page | No | Page number for pagination | |
| repo | Yes | Project path/name (e.g. 'pro-portal-onboarding-and-retention') | |
| owner | Yes | Project namespace/path (e.g. 'pro/portal/frontends') or numeric Project ID | |
| perPage | No | Number of results per page |