Skip to main content
Glama
ManpreetShuann

Bitbucket Server MCP

get_file_content

Retrieve the raw content of a file from a Bitbucket repository by specifying project key, repository slug, and file path, with an optional branch or commit reference.

Instructions

Get the raw content of a file from a repository.

Args: project_key: The project key. repo_slug: The repository slug. path: Full path to the file within the repository. at: Optional branch name, tag, or commit ID (defaults to default branch).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_keyYes
repo_slugYes
pathYes
atNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It mentions 'raw content' but does not specify the format (binary, text), size limits, authentication requirements, or error handling. For a file retrieval tool, this leaves important gaps.

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 concise: one sentence for the purpose followed by a clear Args list. No extraneous information, and the structure front-loads the core action.

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?

Given the tool complexity (4 parameters, no annotations), the description is fairly complete, covering all parameters. However, it lacks details on the output format (though an output schema is present) and behavior for large files. The missing guidance on return format or limitations prevents a perfect score.

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

Parameters4/5

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

The description's Args section explains each parameter: project_key, repo_slug, path, and at (optional). This adds semantic meaning beyond the input schema, which has 0% description coverage. The explanation of 'at' as 'Optional branch name, tag, or commit ID (defaults to default branch)' is particularly helpful.

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 purpose: 'Get the raw content of a file from a repository.' This uses a specific verb and resource, and it distinguishes the tool from siblings like browse_files, find_file, and list_files, which have different purposes.

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 does not explicitly state when to use this tool versus alternatives, such as browse_files for directory listing or search_code for searching. The usage context is implied by the parameter 'path' indicating a specific file, but no exclusions or alternative tool recommendations are provided.

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/ManpreetShuann/bitbucket-server-mcp'

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