Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_compare_refs

Compare GitLab branches, tags, or commits to view differences in commit lists, file changes, and diff stats. Simplifies reviewing updates before merging or creating merge requests.

Instructions

Compare two refs (branches/tags/commits) to see differences. Returns commit list, diff stats, and file changes. Useful for reviewing changes before merging or creating MRs.

Input Schema

NameRequiredDescriptionDefault
from_refYesSource ref for comparison (string, required). Branch name, tag, or commit SHA to compare from
project_idNoProject ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided
straightNoUse straight diff instead of three-dot (boolean). True = direct diff, False = merge-base diff. Default: false
to_refYesTarget ref for comparison (string, required). Branch name, tag, or commit SHA to compare to

Input Schema (JSON Schema)

{ "properties": { "from_ref": { "description": "Source ref for comparison (string, required). Branch name, tag, or commit SHA to compare from", "type": "string" }, "project_id": { "description": "Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided", "type": "string" }, "straight": { "default": false, "description": "Use straight diff instead of three-dot (boolean). True = direct diff, False = merge-base diff. Default: false", "type": "boolean" }, "to_ref": { "description": "Target ref for comparison (string, required). Branch name, tag, or commit SHA to compare to", "type": "string" } }, "required": [ "from_ref", "to_ref" ], "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/Vijay-Duke/mcp-gitlab'

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