Skip to main content
Glama

get_file_content

Retrieve file content and metadata from CERN GitLab repositories for code analysis, documentation review, or dependency checking in High Energy Physics projects.

Instructions

Retrieve the content of a specific file from a CERN GitLab repository. Returns the file content along with metadata like size, encoding, and a language hint for syntax highlighting. Binary files are detected and reported without attempting to decode them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesProject identifier — either a numeric ID (e.g. '12345') or a path (e.g. 'atlas/athena')
file_pathYesPath to the file within the repository (e.g. 'src/main.py')
refNoBranch name, tag, or commit SHA (default: project's default branch)

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/MohamedElashri/cerngitlab-mcp'

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