get_merge_request_commits
Get commits in a GitLab merge request by supplying project ID and MR IID. Control result size with page and per_page parameters for efficient review.
Instructions
Get commits in a merge request.
Args: project_id: GitLab project ID mr_iid: Merge request IID page: Page number for pagination (default: 1) per_page: Number of results per page (default: 20, max: 100)
Returns: Formatted string with commit list and pagination info
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>",
"mr_iid": "<mr_iid>"
},
"name": "get_merge_request_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| mr_iid | Yes | ||
| per_page | No | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |