Skip to main content
Glama
kopiloto

gitlab-mcp-server

by kopiloto

read_repository_code

Read a GitLab repository's code structure and file contents with filters for path, file types, size, and number of files.

Instructions

Read the complete code structure and content of a repository with filtering options.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe project ID or path (e.g., 'username/repo-name')
refNoBranch, tag, or commit SHAmain
pathNoSpecific directory path to read (leave empty for root)
max_filesNoMaximum number of files to read (default: 50)
max_file_sizeNoMaximum file size in bytes to read (default: 100KB)
include_patternsNoComma-separated file patterns to include (e.g., '*.py,*.js')
exclude_patternsNoComma-separated file patterns to exclude (e.g., '*.log,*.tmp')*.log,*.tmp,*.lock,node_modules/*,__pycache__/*,*.pyc,*.pyo,*.pyd,.git/*
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits, but it only states 'Read' and mentions filtering options. It does not explain recursion, limits, or how the 'complete code structure' is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no unnecessary words. It is concise but could be slightly more structured (e.g., bullet points for options).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters and no output schema, the description is too brief. It doesn't explain what 'complete code structure' entails, how output is formatted, or the impact of filtering parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds little beyond the schema—'filtering options' is generic and doesn't clarify parameter usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Read') and resource ('complete code structure and content'), clearly distinguishing it from sibling tools like read_repository_file (single file) and get_repository_details (metadata).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like read_repository_file, nor does it specify prerequisites or preferred use cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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

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