Get repository commit
get_commitRetrieve a GitLab commit by SHA or ref and optionally include diff statistics. Use this tool to inspect changes and commit details for specific revisions in a project.
Instructions
Fetch a GitLab commit and its optional diff statistics.
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": "<project>",
"sha": "<sha>"
},
"name": "get_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | Commit SHA or Git ref. | |
| stats | No | ||
| project | Yes | GitLab project ID or full path such as group/project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |