Skip to main content
Glama
aashari

Atlassian Bitbucket MCP Server

by aashari

bb_diff_branches

Compare changes between branches in a Bitbucket repository. Displays file changes, additions, and deletions as formatted Markdown. Specify source and destination branches, and optionally limit the number of files shown. Requires configured Bitbucket credentials.

Instructions

Shows changes between branches in a repository identified by workspaceSlug and repoSlug. Compares changes in sourceBranch relative to destinationBranch. Limits the number of files to show with limit. Returns the diff as formatted Markdown showing file changes, additions, and deletions. Requires Bitbucket credentials to be configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoPagination cursor for retrieving additional results
destinationBranchNoDestination branch for comparison. IMPORTANT NOTE: The output displays as "destinationBranch → sourceBranch", and parameter naming can be counterintuitive. For full code diffs, try both parameter orders if initial results show only summary. If not specified, defaults to "main". Example: "develop"
includeFullDiffNoWhether to include the full code diff in the output. Defaults to true for rich output.
limitNoMaximum number of changed files to return in results
repoSlugYesRepository slug containing the branches. Must be a valid repository slug in the specified workspace. Example: "project-api"
sourceBranchYesSource branch for comparison. IMPORTANT NOTE: The output displays as "destinationBranch → sourceBranch", and parameter naming can be counterintuitive. For full code diffs, try both parameter orders if initial results show only summary. Example: "feature/login-redesign"
workspaceSlugNoWorkspace slug containing the repository. If not provided, the system will use your default workspace (either configured via BITBUCKET_DEFAULT_WORKSPACE or the first workspace in your account). Example: "myteam"
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it describes the output format ('formatted Markdown showing file changes, additions, and deletions'), authentication requirements ('Requires Bitbucket credentials'), and operational constraints ('Limits the number of files to show'). However, it doesn't mention rate limits, error conditions, or whether the operation is read-only.

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 appropriately sized with three sentences that each earn their place: first states the core operation, second adds parameter context, third covers output format and authentication. It's front-loaded with the main purpose, though the second sentence could be slightly more concise.

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 7 parameters, no annotations, and no output schema, the description provides good coverage of what the tool does, its output format, and authentication needs. It could be more complete by explicitly stating this is a read-only operation and mentioning any limitations on branch naming or repository access.

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 already documents all 7 parameters thoroughly. The description adds minimal value beyond the schema, mentioning only the purpose of the limit parameter and the workspaceSlug/repoSlug identification context. Baseline 3 is appropriate when the schema does the heavy lifting.

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 with specific verbs ('shows changes', 'compares changes') and resources ('branches in a repository'), distinguishing it from siblings like bb_diff_commits (which compares commits) and bb_list_branches (which lists branches). It specifies the exact comparison operation between source and destination branches.

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 implies usage context by stating it compares branches in a repository, but doesn't explicitly say when to use this tool versus alternatives like bb_diff_commits or bb_get_commit_history. It mentions Bitbucket credentials requirement, which is a prerequisite but not a usage guideline relative to other tools.

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