Skip to main content
Glama

Merge Merge Request

gitlab_merge_merge_request

Merge an existing GitLab merge request, optionally squashing commits, auto-merging when checks pass, or removing the source branch after completion.

Instructions

Merge an existing merge request.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_merge_merge_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
shaNo
squashNo
auto_mergeNo
project_idNo
source_branchNo
merge_request_iidNo
merge_commit_messageNo
squash_commit_messageNo
should_remove_source_branchNo
merge_when_pipeline_succeedsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv1.7.0
    • removedInput schema / properties / auto_merge / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / auto_merge / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / merge_commit_message / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / merge_commit_message / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / merge_request_iid / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / merge_request_iid / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / merge_when_pipeline_succeeds / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / merge_when_pipeline_succeeds / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / sha / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / sha / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / should_remove_source_branch / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / should_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"
      +]
    • removedInput schema / properties / squash_commit_message / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / squash_commit_message / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.4/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 safety envelope is partly covered. The description adds nothing: it does not say what a merge changes, whether it is reversible, how conflicts or failed pipelines are handled, or what auto-merge implies.

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

Conciseness3/5

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

The single sentence is front-loaded and free of padding, which is good structurally. But the brevity comes from omission rather than discipline, so it reads as under-specification rather than tight writing.

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 10-parameter, non-idempotent write operation with no output schema and no parameter documentation, six words are far from sufficient. The agent cannot determine how to set sha, squash, or auto_merge, nor what a successful response contains.

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 10 parameters, several of which are highly ambiguous (sha, squash, auto_merge, merge_when_pipeline_succeeds, merge_commit_message vs squash_commit_message). The description explains none of them, leaving the agent to guess semantics for a mutating call.

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

Purpose4/5

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

The description gives a specific verb ('Merge') and resource ('an existing merge request'), so the agent knows exactly what action is performed. It does not, however, distinguish this tool from adjacent operations such as gitlab_rebase_merge_request or note/discussion tools on the same resource.

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

Usage Guidelines2/5

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

The only usage signal is the word 'existing', implying the merge request must already be present. There is no guidance on prerequisites (open state, approvals, pipeline status) or on when to choose this over rebase, update, or approve.

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