Skip to main content
Glama

accept_merge_request

Merge an approved GitLab merge request into its target branch, with optional squash, custom commit message, and source branch cleanup.

Instructions

Merge an approved merge request into the target branch

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
squashNoSquash commits during merge
project_idYesProject numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically.
commit_messageNoCustom commit message for the merge commit
merge_request_iidYesMerge request IID to merge into target branch
should_remove_source_branchNoDelete source branch after merge

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It reveals the precondition (approved MR) and the destination (target branch), but says nothing about required permissions, that the operation mutates the repository irreversibly, that the source branch handling / squash options exist, or how failures (conflicts, unapproved state) surface.

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?

A single front-loaded sentence with zero filler. It is efficient, though arguably terse enough that a little more substance could be added without hurting readability.

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

Completeness3/5

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

For a consequential mutation with no annotations and no output schema, one sentence is thin: it does not cover permission needs, failure modes, or what state changes result beyond the merge itself. The schema covers the options, but the behavioral envelope is only partially described.

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 description coverage is 100%, so all five parameters including squash, commit_message, and should_remove_source_branch are already documented in the schema. The description adds no parameter meaning beyond that, which is the correct baseline when the schema does the work.

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?

States a specific verb (merge) and resource (merge request) plus the scope (into the target branch, only approved MRs). An agent can distinguish it from update_merge_request by the merge semantics, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The word 'approved' implies the precondition that the MR must already be approved, which is useful routing information. However, there is no explicit when-to-use vs when-not guidance, no mention of alternatives like update_merge_request, and no note about what to do on a rejected merge.

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