Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

mergePullRequest

Merges a Bitbucket Data Center pull request by repository and PR ID, with optional merge strategy and commit message.

Instructions

Merge a pull request

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>",
      "prId": "<prId>"
    },
    "name": "mergePullRequest"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYes
messageNoMerge commit message
repoSlugYes
strategyNo
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

D1.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing: not that merging is a state-changing, effectively irreversible action, not what the default merge strategy is, and not whether the source branch is deleted or the PR closed afterwards.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three words with no waste, but this is under-specification rather than conciseness. There is no structure or front-loaded detail because there is no detail at all.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, unannotated, destructive mutation with no output schema, the description omits everything an agent would need: preconditions, strategy behavior, side effects, and error conditions. Completely inadequate for the tool's complexity.

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

Parameters1/5

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

Schema description coverage is only 20% across five parameters — only the 'message' parameter carries documentation, in the schema itself. The description says nothing about strategy (a three-value enum with a meaningful default), projectKey, repoSlug format, or prId, so an agent must guess at merge semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Merge a pull request" adds essentially nothing beyond the tool name mergePullRequest — it is a verb+resource restatement with no scope, no outcome, and no differentiation from siblings such as canMergePullRequest or enqueuePullRequest.

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 call this versus canMergePullRequest (check eligibility first) or the merge-queue tools, and no mention of preconditions such as approvals or passing CI. No exclusions or alternatives are named.

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