Skip to main content
Glama
aashari

Atlassian Bitbucket MCP Server

by aashari

bb_get_file

Retrieve raw file content from a Bitbucket repository by specifying workspace, repository, file path, and optional revision. Use this tool to access files directly for integration or analysis purposes.

Instructions

Retrieves the content of a file from a Bitbucket repository identified by workspaceSlug and repoSlug. Specify the file to retrieve using the filePath parameter. Optionally, you can specify a revision (branch name, tag, or commit hash) to retrieve the file from - if omitted, the repository's default branch is used. Returns the raw content of the file as text. Requires Bitbucket credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to the file within the repository. Example: "README.md" or "src/main.js"
repoSlugYesRepository slug containing the file. Example: "project-api"
revisionNoOptional branch name, tag, or commit hash to retrieve the file from. If omitted, uses the default branch.
workspaceSlugNoWorkspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam"
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the operation's purpose, return format ('raw content of the file as text'), and authentication requirement ('Requires Bitbucket credentials'). However, it doesn't mention potential error conditions, rate limits, file size limitations, or encoding considerations that would be helpful for an agent.

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 efficiently structured in three sentences: the core purpose, parameter usage with optional behavior, and return format plus authentication requirement. Every sentence adds essential information with zero wasted words, making it easy for an agent to parse quickly.

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?

For a read-only file retrieval tool with no annotations and no output schema, the description provides good coverage of the operation's purpose, parameters, return format, and authentication needs. The main gap is the lack of output schema, which means the agent doesn't know the exact structure of the returned content, though 'raw content as text' gives reasonable guidance.

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?

With 100% schema description coverage, the schema already documents all four parameters thoroughly. The description adds minimal value beyond the schema by briefly mentioning the optional 'revision' parameter and its default behavior, but doesn't provide additional semantic context or examples beyond what's in the schema descriptions.

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 specific action ('Retrieves the content of a file'), identifies the resource ('from a Bitbucket repository'), and distinguishes it from siblings by focusing on file content retrieval rather than repository metadata, PR operations, or other repository actions listed in the sibling tools.

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 (to retrieve file content) and mentions an optional parameter (revision) with its default behavior. However, it doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools for different scenarios.

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

Related 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/aashari/mcp-server-atlassian-bitbucket'

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