Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_list_branches

Retrieve and list all branches in a GitLab repository with detailed commit information. Use to monitor feature branches, identify defaults, or filter results for specific branch types.

Instructions

List repository branches Returns: All branches with latest commit info Use when: Checking branches, finding feature branches Optional: Search filter

Example response: [{ "name": "main", "protected": true, "merged": false, "can_push": true, "default": true, "commit": { "id": "abc123...", "short_id": "abc123", "title": "Latest commit" } }]

Related tools:

  • gitlab_create_branch: Create new branch

  • gitlab_delete_branch: Remove branch

  • gitlab_compare_refs: Compare branches

Input Schema

NameRequiredDescriptionDefault
project_idNoProject ID or path (optional - auto-detects from git)

Input Schema (JSON Schema)

{ "properties": { "project_id": { "description": "Project ID or path (optional - auto-detects from git)", "type": "string" } }, "type": "object" }

Other Tools from MCP GitLab Server

Related Tools

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