Skip to main content
Glama

List Files

bitbucket_list_files
Read-only

List all file paths in a Bitbucket repository or sub-directory to understand project structure or find specific files.

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
project_keyYesThe project key
repository_slugYesThe repository slug
pathNoSub-path to list from (default: repository root)
atNoBranch, tag, or commit (default: default branch)
startNoPagination start index
limitNoMax results (1-5000)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations provide readOnlyHint=true, but the description adds valuable behavioral context: it specifies 'Returns a flat list of all file paths (no directories)' and 'Recursively list all file paths,' clarifying the output format and traversal behavior. It does not mention rate limits or authentication needs, but adds meaningful details beyond annotations.

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 front-loaded with the core purpose in the first sentence, followed by additional context in a second sentence. Both sentences are essential: the first defines the action, and the second clarifies use cases. There is no wasted text, making it highly concise and well-structured.

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

Completeness5/5

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

Given the tool's complexity (6 parameters, 2 required), rich annotations (readOnlyHint), and the presence of an output schema, the description is complete enough. It explains the tool's purpose, output format, and use cases without needing to detail parameters or return values, which are covered 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?

Schema description coverage is 100%, so the schema fully documents all 6 parameters. The description does not add any parameter-specific details beyond what the schema provides, such as examples or edge cases. With high schema coverage, the baseline score of 3 is appropriate.

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 clearly states the tool's purpose: 'Recursively list all file paths in a repository or sub-directory.' It specifies the verb ('list'), resource ('file paths'), and scope ('repository or sub-directory'), and distinguishes from siblings like bitbucket_browse (which likely shows directory structure) and bitbucket_code_search (which searches content).

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool: 'Useful for understanding the project structure or finding files by name.' It implies usage over alternatives like bitbucket_code_search for path-based discovery, but does not explicitly state when not to use it or name specific sibling alternatives.

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