Skip to main content
Glama

list_repository_tree_tool

List files and directories in a GitLab repository at a given path and ref, with optional recursion to map the full project structure.

Instructions

List repository tree (files and directories).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoBranch, tag, or commit SHA (default: default branch)
pageNoPage number (default: 1)
pathNoPath inside the repository (default: root)
per_pageNoResults per page, max 100 (default: 20)
recursiveNoList files recursively
project_idYesProject ID or path

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not mention pagination, recursion defaults, ref/path defaults, or read-only behavior, leaving important execution traits undisclosed beyond what the schema enumerates.

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. However, it is slightly under-specified for a tool with six parameters, so it earns a high but not perfect conciseness score.

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

Completeness3/5

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

The schema and output schema cover the parameter mechanics and return shape, but the description omits usage guidance and behavioral details like pagination or default branch behavior. It is minimally viable for a simple list tool but leaves gaps for agents unfamiliar with GitLab conventions.

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 the parameters are already well-documented with defaults and meanings. The description adds no parameter-level insight beyond the schema, which is acceptable under the baseline of 3.

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 ('List') and clearly identifies the resource ('repository tree') with a clarifying parenthetical ('files and directories'). This distinguishes it from sibling tools like list_projects_tool or get_file_tool, which address different resources.

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

Usage Guidelines3/5

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

The description implies usage for browsing repository contents but does not explicitly state when to choose this tool over alternatives, mention prerequisites, or provide exclusions. It is understandable but lacks the explicit guidance expected for a well-documented tool.

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

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