Skip to main content
Glama

List Files

bitbucket_list_files
Read-onlyIdempotent

Recursively list all file paths in a Bitbucket repository to explore project structure and locate files by name.

Instructions

Recursively list all file paths in a repository or sub-directory.

Returns a flat list of all file paths (no directories). Useful for understanding the project structure or finding files by name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNoBranch, tag, or commit (default: default branch)
pathNoSub-path to list from (default: repository root)
limitNoMax results (1-5000)
startNoPagination start index
project_keyYesThe project key
repository_slugYesThe repository slug
response_formatNoOutput format: markdown (default) or jsonmarkdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate the tool is read-only, idempotent, and non-destructive. The description adds behavioral details like recursive listing and returning only file paths, which complements the annotations without contradiction.

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

Conciseness5/5

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

The description is two sentences long, concise, and front-loads the core functionality. Every sentence adds value with no redundancy.

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

Completeness4/5

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

With an output schema present, the description does not need to explain return values. It covers the core purpose and behavior well, though it could be slightly more detailed about pagination or default behavior. The annotations further complete the context.

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 has 100% description coverage, so parameters are well-documented in the schema. The description does not add significant extra meaning beyond what the schema already provides, so a score of 3 is appropriate.

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 the tool recursively lists all file paths in a repository or sub-directory and returns a flat list with no directories. However, it does not explicitly differentiate from sibling tools like bitbucket_browse or bitbucket_get_file_content, which might also be used for exploring repository structure.

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 mentions it is useful for understanding project structure or finding files by name, which gives some context. But it does not provide explicit guidance on when to use this tool versus alternatives or any prerequisites or limitations.

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/christopherekfeldt/mcp-bitbucket-dc'

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