Skip to main content
Glama

GitLab MCP Server

by Alosies

update_merge_request

Modify an existing GitLab merge request by updating its title, description, target branch, assignees, labels, or state. Use this tool to change merge request properties, reassign reviewers, adjust merge settings, or close/reopen requests as needed.

Instructions

Update an existing merge request

Input Schema

NameRequiredDescriptionDefault
allow_collaborationNoAllow commits from members who can merge
assignee_idNoAssign a user to the merge request (use 0 to unassign)
assignee_idsNoAssign multiple users to the merge request
descriptionNoUpdate merge request description (max 1,048,576 characters)
labelsNoUpdate labels (comma-separated)
merge_request_iidYesMerge request internal ID
merge_when_pipeline_succeedsNoSet MR to merge when pipeline succeeds
milestone_idNoAssign a milestone (use 0 to remove)
project_idYesProject ID or path
remove_source_branchNoFlag to remove source branch after merging
reviewer_idsNoSet reviewers for the merge request
squashNoToggle squash commits on merge
state_eventNoChange the state (close or reopen the MR)
target_branchNoChange the target branch
titleNoUpdate merge request title

Input Schema (JSON Schema)

{ "properties": { "allow_collaboration": { "description": "Allow commits from members who can merge", "type": "boolean" }, "assignee_id": { "description": "Assign a user to the merge request (use 0 to unassign)", "type": "number" }, "assignee_ids": { "description": "Assign multiple users to the merge request", "items": { "type": "number" }, "type": "array" }, "description": { "description": "Update merge request description (max 1,048,576 characters)", "type": "string" }, "labels": { "description": "Update labels (comma-separated)", "type": "string" }, "merge_request_iid": { "description": "Merge request internal ID", "type": "number" }, "merge_when_pipeline_succeeds": { "description": "Set MR to merge when pipeline succeeds", "type": "boolean" }, "milestone_id": { "description": "Assign a milestone (use 0 to remove)", "type": "number" }, "project_id": { "description": "Project ID or path", "type": "string" }, "remove_source_branch": { "description": "Flag to remove source branch after merging", "type": "boolean" }, "reviewer_ids": { "description": "Set reviewers for the merge request", "items": { "type": "number" }, "type": "array" }, "squash": { "description": "Toggle squash commits on merge", "type": "boolean" }, "state_event": { "description": "Change the state (close or reopen the MR)", "enum": [ "close", "reopen" ], "type": "string" }, "target_branch": { "description": "Change the target branch", "type": "string" }, "title": { "description": "Update merge request title", "type": "string" } }, "required": [ "project_id", "merge_request_iid" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alosies/gitlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server