Skip to main content
Glama

Merge request actions

gitlab_merge_request_action

Manage a merge request: approve, unapprove, rebase, cancel auto-merge, or inspect its approvals, commits, participants, closed issues, and pipelines.

Instructions

Approve/unapprove, rebase, cancel auto-merge, or inspect approvals, commits, participants, closed issues and pipelines of a merge request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
project_idNoProject id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID.
merge_request_iidYes
Behavior3/5

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

The description lists both mutating actions (approve, rebase, cancel) and read-only inspections, which aligns with annotations (readOnlyHint=false, destructiveHint=false). However, it does not add deeper behavioral context such as permission requirements, idempotency, or side effects of each action. It neither contradicts nor enriches the annotations significantly.

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 a single, front-loaded sentence that efficiently lists the tool's capabilities. It is somewhat list-heavy but avoids redundant phrasing and remains readable. A slight improvement could be splitting into use-case categories, but as is, it is appropriately concise.

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?

The tool has multiple action types and no output schema, so the description bears the responsibility of explaining behavior. It covers the main actions but lacks details about return values, permissions, or special behaviors (e.g., what does 'approve' return? are there side effects?). This makes it minimally viable but not 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 description coverage is only 33% (only project_id has a description), so the description must compensate. It does provide semantic meaning for the 'action' parameter by explaining what each action does, but it offers no additional context for 'merge_request_iid' or 'project_id' beyond what the schema already gives. Overall, it partially compensates for the low schema coverage.

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 specifies the tool's purpose with a list of concrete actions ('Approve/unapprove, rebase, cancel auto-merge, or inspect...') and identifies the resource ('a merge request'). It distinguishes itself from sibling tools like gitlab_get_merge_request or gitlab_update_merge_request by focusing on specialized MR actions.

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 description implies usage scenarios by enumerating the available actions, but it does not explicitly compare with alternatives or state when not to use it. An agent can infer that this tool is for approval, rebase, and inspection actions, but there is no direct guidance on choosing this over related merge request tools.

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

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