Skip to main content
Glama

gitlab_create_merge_request

Create a merge request from a source branch to a target branch. Avoid duplicates by checking existing MRs first.

Instructions

Create a merge request from source_branch into target_branch.

Not idempotent: creates a new MR each call. Check existing MRs first via gitlab_list_merge_requests if you want to avoid duplicates.

Examples: - "Open an MR from feature/login to master" → source_branch='feature/login' - "Open a WIP MR with a label" → title='Draft: ...', labels=['wip'] - Don't use to merge an already-open MR — use gitlab_merge_mr.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_branchYesSource branch.
target_branchNoTarget branch (default 'master').master
titleNoMR title. Auto-generated if omitted.
descriptionNoMR description (markdown supported).
labelsNoLabels to apply.
remove_source_branchNoDelete source branch after merge.
project_pathNoGitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
iidNo
titleNo
stateNo
source_branchNo
target_branchNo
merge_statusNo
has_conflictsNo
web_urlNo
statusNo
hintNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate idempotentHint=false, readOnlyHint=false. The description adds the clear warning that it's not idempotent and creates a new MR each call, which aligns with and reinforces the annotations. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with the core purpose. It includes important warnings and examples in a structured manner. Slightly more structured formatting could improve it, but it's efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters (1 required), 100% schema coverage, and an output schema, the description covers key behavioral aspects: non-idempotence, duplicate avoidance, and alternative tools. It does not mention permissions or return values, but the output schema exists, so it's fairly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all parameters have descriptions in the schema. The description provides examples that illustrate parameter usage but does not add significant new semantic meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it creates a merge request from source_branch to target_branch. It distinguishes from siblings by advising not to use for merging an open MR (use gitlab_merge_mr) and suggesting to check existing MRs via gitlab_list_merge_requests to avoid duplicates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly provides when to use (create a new MR), when not to use (don't use to merge an open MR), and suggests checking for duplicates first via gitlab_list_merge_requests. Also names the alternative gitlab_merge_mr for merging.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/mshegolev/gitlab-ci-mcp'

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