Skip to main content
Glama

Create Merge Request

gitlab_create_merge_request

Create a GitLab merge request between source and target branches with a title, optional description, labels, reviewers, assignees, and squash or draft options.

Instructions

Create a merge request.

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": {
      "source_branch": "<source_branch>",
      "target_branch": "<target_branch>",
      "title": "<title>"
    },
    "name": "gitlab_create_merge_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNo
titleYes
labelsNo
squashNo
project_idNo
descriptionNo
assignee_idsNo
milestone_idNo
reviewer_idsNo
source_branchYes
target_branchYes
target_project_idNo
allow_collaborationNo
remove_source_branchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.7.0
    • removedInput schema / properties / allow_collaboration / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / allow_collaboration / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / draft / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / draft / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • addedInput schema / properties / milestone_id
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • removedInput schema / properties / remove_source_branch / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / remove_source_branch / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / squash / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / squash / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

D1.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the mutation/safety profile is covered structurally. The description adds nothing beyond that: it does not say what a merge request is created against, that duplicate MRs for the same branch pair may be rejected, what side effects occur (e.g., pipelines triggered), or that a returned IID is needed for follow-up calls.

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

Conciseness2/5

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

The single sentence is short but it is under-specification rather than conciseness; it consumes the entire definition without conveying information beyond the tool name. Nothing is front-loaded because there is nothing substantive to front-load.

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

Completeness1/5

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

For a 14-parameter, non-idempotent write tool with no output schema and no parameter documentation, this definition is completely inadequate. An agent cannot determine required argument meanings, defaults, valid branch relationships, or what the response contains without opening the raw schema and guessing.

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

Parameters1/5

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

Schema description coverage is 0% across 14 parameters, so the description carries the full explanatory burden and fails entirely. Non-obvious fields such as draft, squash, allow_collaboration, remove_source_branch, target_project_id, milestone_id and reviewer_ids receive no explanation of semantics or accepted formats anywhere in the definition.

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

Purpose2/5

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

The description 'Create a merge request.' restates the tool name and title almost verbatim, adding no scope, no target object detail, and no differentiation from sibling tools such as gitlab_update_merge_request or gitlab_merge_merge_request. An agent only learns that a creation operation exists, not what it produces or which project/branch context it needs.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisite (e.g., source branch must already exist), and no mention of alternatives like gitlab_update_merge_request for modifying an existing MR. The agent must infer everything from the name alone.

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

Deploy Server

Other Tools