Skip to main content
Glama

update_merge_request

Modify merge request details including title, description, assignees, labels, branch settings, and state. Update project merge requests to reflect changes in requirements or fix issues.

Instructions

Update a merge request (Either mergeRequestIid or branchName must be provided)

Input Schema

NameRequiredDescriptionDefault
project_idYesProject ID or complete URL-encoded path to project
merge_request_iidNoThe IID of a merge request
source_branchNoSource branch name
titleNoThe title of the merge request
descriptionNoThe description of the merge request
target_branchNoThe target branch
assignee_idsNoThe ID of the users to assign the MR to
labelsNoLabels for the MR
state_eventNoNew state (close/reopen) for the MR
remove_source_branchNoFlag indicating if the source branch should be removed
squashNoSquash commits into a single commit when merging
draftNoWork in progress merge request

Input Schema (JSON Schema)

{ "properties": { "assignee_ids": { "description": "The ID of the users to assign the MR to", "items": { "type": "number" }, "type": "array" }, "description": { "description": "The description of the merge request", "type": "string" }, "draft": { "description": "Work in progress merge request", "type": "boolean" }, "labels": { "description": "Labels for the MR", "items": { "type": "string" }, "type": "array" }, "merge_request_iid": { "description": "The IID of a merge request", "type": "number" }, "project_id": { "description": "Project ID or complete URL-encoded path to project", "type": "string" }, "remove_source_branch": { "description": "Flag indicating if the source branch should be removed", "type": "boolean" }, "source_branch": { "description": "Source branch name", "type": "string" }, "squash": { "description": "Squash commits into a single commit when merging", "type": "boolean" }, "state_event": { "description": "New state (close/reopen) for the MR", "enum": [ "close", "reopen" ], "type": "string" }, "target_branch": { "description": "The target branch", "type": "string" }, "title": { "description": "The title of the merge request", "type": "string" } }, "required": [ "project_id" ], "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/harshmaur/gitlab-mcp'

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