Get GitLab merge request
get_merge_requestRetrieve detailed merge request information including metadata, branches, participants, mergeability, pipeline status, approvals, and discussion status from a GitLab project.
Instructions
Get merge request metadata, branches, participants, mergeability, pipeline, approvals, and discussion status.
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": "get_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | GitLab project ID or full path such as group/project. | |
| merge_request_iid | Yes | Project-scoped internal ID. | |
| include_rebase_in_progress | No | ||
| include_diverged_commits_count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |