Skip to main content
Glama

Get Repository Tree

gitlab_get_repository_tree
Read-onlyIdempotent

Retrieve the file and directory tree of a GitLab repository. Specify project, path, branch, and recursion depth to filter results.

Instructions

List files and directories in a repository tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
pageNo
pathNo
per_pageNo
recursiveNo
project_idNo
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the agent knows it is a safe read operation. The description adds no behavioral context beyond 'list', but does not contradict annotations. Missing details on pagination, recursion, and response structure.

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

Conciseness3/5

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

The description is a single sentence with no fluff, but it is too brief and lacks important details. Conciseness is good but at the expense of completeness.

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 6 parameters, no output schema, and minimal description, the tool definition is incomplete. The agent lacks information on pagination, recursion, required project context, and return format.

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

Parameters1/5

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

Schema description coverage is 0%, meaning no parameters are described in the description. The description does not compensate by explaining any of the 6 parameters (ref, path, recursive, per_page, page, project_id). This is a major gap.

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 clearly states that the tool lists files and directories in a repository tree. It is specific (verb+resource) and implicitly distinguishes from sibling tools like gitlab_get_file_contents (single file) and gitlab_list_commits (commits). However, it could be more precise about 'tree' meaning a hierarchical listing.

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 on when to use this tool versus alternatives. There is no mention of pagination, recursion, or filtering options. The description provides no context about prerequisites or when not to use it.

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

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