gitlab_get_merge_request
Retrieve full details of a GitLab merge request by IID, including state, branches, author, assignees, reviewers, labels, conflicts, description, and timestamps.
Instructions
Get full information about a merge request by internal ID (iid).
Includes state, branches, author, assignees, reviewers, labels, conflict status, description and timestamps.
Examples:
- "Show me the description and state of !42" → mr_iid=42
- Don't use to see changed files — use gitlab_get_merge_request_changes.
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": {
"mr_iid": "<mr_iid>",
"project_path": "<project_path>"
},
"name": "gitlab_get_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_iid | Yes | Merge request IID (project-local number shown as '!42'). | |
| project_path | Yes | GitLab project path (e.g. 'my-org/my-repo'). Required by default. For legacy deployments only, set GITLAB_ALLOW_DEFAULT_PROJECT=true to use GITLAB_PROJECT_PATH when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | Yes | ||
| state | Yes | ||
| title | Yes | ||
| author | Yes | ||
| labels | Yes | ||
| web_url | Yes | ||
| assignees | Yes | ||
| merged_at | Yes | ||
| reviewers | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| description | Yes | ||
| merge_status | Yes | ||
| changes_count | Yes | ||
| has_conflicts | Yes | ||
| source_branch | Yes | ||
| target_branch | Yes |