Skip to main content
Glama

get_repository_tree

List files and directories in a GitLab project repository to view its structure and contents.

Instructions

Get the repository tree for a GitLab project (list files and directories)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoThe ID or URL-encoded path of the project
pathNoThe path inside the repository
refNoThe name of a repository branch or tag. Defaults to the default branch.
recursiveNoBoolean value to get a recursive tree
per_pageNoNumber of results to show per page
page_tokenNoThe tree record ID for pagination
paginationNoPagination method (keyset)

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

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