Skip to main content
Glama

create_merge_request

Create a new merge request in a GitLab project by specifying source and target branches, title, description, assignees, reviewers, and labels to propose code changes for review.

Instructions

Create a new merge request in a GitLab project

Input Schema

NameRequiredDescriptionDefault
project_idYesProject ID or complete URL-encoded path to project
titleYesMerge request title
descriptionNoMerge request description
source_branchYesBranch containing changes
target_branchYesBranch to merge into
assignee_idsNoThe ID of the users to assign the MR to
reviewer_idsNoThe ID of the users to assign as reviewers of the MR
labelsNoLabels for the MR
draftNoCreate as draft merge request
allow_collaborationNoAllow commits from upstream members

Input Schema (JSON Schema)

{ "properties": { "allow_collaboration": { "description": "Allow commits from upstream members", "type": "boolean" }, "assignee_ids": { "description": "The ID of the users to assign the MR to", "items": { "type": "number" }, "type": "array" }, "description": { "description": "Merge request description", "type": "string" }, "draft": { "description": "Create as draft merge request", "type": "boolean" }, "labels": { "description": "Labels for the MR", "items": { "type": "string" }, "type": "array" }, "project_id": { "description": "Project ID or complete URL-encoded path to project", "type": "string" }, "reviewer_ids": { "description": "The ID of the users to assign as reviewers of the MR", "items": { "type": "number" }, "type": "array" }, "source_branch": { "description": "Branch containing changes", "type": "string" }, "target_branch": { "description": "Branch to merge into", "type": "string" }, "title": { "description": "Merge request title", "type": "string" } }, "required": [ "project_id", "title", "source_branch", "target_branch" ], "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