Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

getFileContent

Retrieves the raw content of a file from a Bitbucket Data Center repository by project, repository, and path, optionally at a specific branch, tag, or commit.

Instructions

Get raw content of a file

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repoSlug": "<repoSlug>",
      "path": "<path>"
    },
    "name": "getFileContent"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoBranch, tag, or commit hash
pathYesFile path
repoSlugYes
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

C2.8/5.0
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 behavioral burden. The phrase 'Get raw content' implies a read-only retrieval, but the description says nothing about authentication, error behavior, handling of binary or large files, encoding, rate limits, or whether the response is the file body alone.

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. It is appropriately concise, though its brevity contributes to the gaps in other dimensions.

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?

For a simple retrieval tool, the core purpose is captured, but with four parameters, 50% schema coverage, no annotations, and no output schema, the description is incomplete. It should at least clarify the repository/project scope and the role of the ref parameter, and ideally describe the returned content.

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

Parameters2/5

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

Schema coverage is only 50%, with repoSlug and projectKey undocumented in the schema, and the description adds no parameter meaning at all. The description does not explain how 'at', 'path', 'repoSlug', or 'projectKey' interact, so it fails to compensate for the coverage gap.

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 states a specific verb and resource: get the raw content of a file. That is clear enough for an agent to know what the tool does, but it does not differentiate it from siblings such as browseFiles, getFileBlame, or getCommitChanges.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool instead of alternatives like browseFiles or getFileBlame. It also omits any preconditions or contextual triggers, leaving usage entirely to inference from the name and schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.