gitlab_get_commit
Retrieve a GitLab commit's details by SHA, including metadata and optional stats. Provide project ID or namespace path and commit SHA to inspect changes.
Instructions
Gets a commit (GET /repository/commits/:sha).
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": {
"projectId": "<projectId>",
"sha": "<sha>"
},
"name": "gitlab_get_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | ||
| stats | No | ||
| projectId | Yes | Numeric ID or path with namespace, e.g. group/project. |