Skip to main content
Glama

get_merge_request_diffs

Retrieve code changes from GitLab merge requests to review modifications, compare branches, and analyze differences between code versions.

Instructions

Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)

Input Schema

NameRequiredDescriptionDefault
project_idYesProject ID or complete URL-encoded path to project
merge_request_iidNoThe IID of a merge request
source_branchNoSource branch name
viewNoDiff view type

Input Schema (JSON Schema)

{ "properties": { "merge_request_iid": { "description": "The IID of a merge request", "type": "number" }, "project_id": { "description": "Project ID or complete URL-encoded path to project", "type": "string" }, "source_branch": { "description": "Source branch name", "type": "string" }, "view": { "description": "Diff view type", "enum": [ "inline", "parallel" ], "type": "string" } }, "required": [ "project_id" ], "type": "object" }

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

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