list_commits
List GitLab repository commits with filters for author, date range, file path, branch, and pagination to inspect project history.
Instructions
List repository commits with filtering options. For one known resource, use the matching get tool.
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_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Every commit in the repository | |
| page | No | Page number (default 1) | |
| path | No | File path | |
| order | No | default or topo | |
| since | No | Commits on or after this ISO 8601 datetime | |
| until | No | Commits on or before this ISO 8601 datetime | |
| author | No | Commit author | |
| summary | No | If true, return only high-signal fields (id, iid, title, state, web_url, …). Default false keeps the full GitLab JSON. | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| per_page | No | Items per page (max 100, default 20) | |
| ref_name | No | Branch, tag, or revision range. Default: default branch. | |
| trailers | No | Include Git trailers | |
| project_id | Yes | Project ID or URL-encoded path | |
| with_stats | No | Include per-commit stats | |
| first_parent | No | Follow only the first parent of merges |