Skip to main content
Glama
Acendas

Bitbucket MCP Server

by Acendas

merge_pull_request

Merge a pull request on Bitbucket Cloud using specified strategies like merge_commit, squash, or fast_forward, with options to close source branches and add custom commit messages.

Instructions

Merge a Pull Request on Bitbucket Cloud.

Args: repo_slug: Repository slug (name) pr_id: Pull Request ID to merge merge_strategy: Merge strategy - "merge_commit", "squash", or "fast_forward" (default: merge_commit) close_source_branch: Whether to close the source branch after merge (default: False) message: Custom merge commit message (optional) workspace: Bitbucket workspace (optional if configured)

Returns: Merge result with commit details or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_slugYes
pr_idYes
merge_strategyNomerge_commit
close_source_branchNo
messageNo
workspaceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it mentions the tool performs a merge operation (implying mutation), it doesn't describe important behavioral aspects: required permissions, whether the operation is reversible, potential side effects beyond merging, or error conditions. The description states it 'Returns merge result with commit details or error message' but doesn't explain what constitutes success versus failure.

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 well-structured with clear sections (Args, Returns) and front-loads the core purpose. Each sentence earns its place by providing necessary information. While efficient, it could be slightly more concise by integrating the parameter explanations more seamlessly rather than as a separate bullet-style list.

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?

Given this is a mutation tool with no annotations but with an output schema, the description is moderately complete. It explains parameters thoroughly but lacks behavioral context about permissions, side effects, and error conditions. The presence of an output schema means the description doesn't need to detail return values, but for a destructive operation like merging, more safety/context information would be beneficial.

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?

With 0% schema description coverage, the description compensates well by explaining all 6 parameters in the Args section. It provides clear semantics for each parameter: identifies required vs optional parameters, explains merge_strategy options with enumerated values, clarifies defaults, and notes workspace is 'optional if configured'. This adds substantial value beyond the bare schema.

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 ('Merge a Pull Request') and target resource ('on Bitbucket Cloud'), distinguishing it from sibling tools like 'approve_pull_request', 'decline_pull_request', or 'update_pull_request'. It provides a complete verb+resource+platform combination that leaves no ambiguity about the tool's function.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether the pull request must be approved or have passing checks), when merging is appropriate versus declining, or how it differs from related operations like 'update_pull_request'. The agent receives no contextual usage instructions.

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

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