Skip to main content
Glama

search_code

Search code snippets across CERN GitLab repositories to find usage examples of libraries, functions, or patterns. Search globally or within specific projects with line-level context.

Instructions

Search for code snippets across CERN GitLab repositories. Can search globally across all public projects or within a specific project. Returns matching files with line-level context. Useful for finding usage examples of specific libraries, functions, or patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
search_termYesThe code or text to search for
projectNoOptional: limit search to a specific project. Either a numeric ID or path (e.g. 'atlas/athena'). If omitted, searches across all public projects.
scopeNoSearch scope: 'blobs' searches file content (default), 'filenames' searches only file names
refNoOptional: Git branch or tag to search within. If omitted, uses the default_ref from configuration (or searches all branches if not configured).
per_pageNoNumber of results to return (default: 20, max: 100)
pageNoPage number to retrieve (default: 1)

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