Skip to main content
Glama
DrBoria

md-gitlab-mcp

by DrBoria

get_file_contents

Fetch file or directory contents from a GitLab repository by providing owner, repo, path, and optional branch.

Instructions

Get the contents of a file or directory from a GitLab repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file or directory
repoYesProject path/name (e.g. 'pro-portal-onboarding-and-retention')
ownerYesProject namespace/path (e.g. 'pro/portal/frontends') or numeric Project ID
branchNoBranch to get contents from

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

There are no annotations to cover safety or behavior, so the description must carry the burden. It only says 'Get the contents' without disclosing important behavior such as whether it returns raw content or metadata, what happens for directories, default branch behavior, authentication requirements, or rate limits.

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, front-loaded sentence with no wasted words. It is concise and immediately clear about the core operation, though it lacks some supporting detail that would improve its overall utility.

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?

With no annotations and no output schema, the description is incomplete for full correct usage. It does not mention default branch, return format, behavior for directories or missing files, or any prerequisites. An agent would need to infer or discover these details elsewhere.

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?

The input schema already documents all parameters with useful descriptions, and coverage is high. The description adds little beyond the schema, but it does clarify that the path can point to either a file or a directory, which slightly supports the 'path' parameter meaning.

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

Purpose4/5

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

The description states a specific verb ('Get') and resource ('contents of a file or directory from a GitLab repository'). It clearly communicates what the tool does, but it does not explicitly differentiate it from sibling tools by name or mention when this tool is preferred over related tools.

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?

No guidance is provided about when to use this tool versus alternatives such as get_merge_request_files, search_code, or list_commits. The description only states the operation without any context about conditions, exclusions, or alternatives.

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

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

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