get_commit
Retrieve details of a specific GitLab commit by providing its SHA, branch, or tag. Optionally include commit stats to analyze changes.
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": {
"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 | |
| project_id | No | Project ID or complete URL-encoded path to project |