get_commit
Get details of a GitLab commit by specifying the project ID and commit SHA. Optionally obtain stats on additions and deletions.
Instructions
Get details of a specific commit
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>",
"sha": "<sha>"
},
"name": "get_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | The commit hash or name of a repository branch or tag | |
| stats | No | Include commit stats (additions, deletions) | |
| project_id | Yes | Project ID or path |