List merge request commits
list_merge_request_commitsRetrieve all commits contained in a GitLab merge request by specifying the project and merge request IID. Includes pagination support for extensive commit histories.
Instructions
List commits contained in a GitLab merge request.
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>",
"merge_request_iid": "<merge_request_iid>"
},
"name": "list_merge_request_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| per_page | No | ||
| merge_request_iid | Yes | Project-scoped internal ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |