Skip to main content
Glama
Bitbucket MCP Server

Bitbucket MCP Server

by auliaadil

create_pull_request

Create a pull request to merge source branch changes into a destination branch in a Bitbucket repository, enabling review and collaboration before merge.

Instructions

Create a new 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": {
      "repo_slug": "<repo_slug>",
      "title": "<title>",
      "source_branch": "<source_branch>"
    },
    "name": "create_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesPR title
repo_slugYesRepository slug (name)
descriptionNoPR description (optional)
source_branchYesSource branch name
destination_branchNoDestination branch name (default: main)
close_source_branchNoClose source branch after merge (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.5/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 burden, and it says nothing about side effects, required permissions, whether the PR is opened immediately or as a draft, or what happens on branch conflicts. For a mutating tool with zero annotation coverage, this is a substantial gap.

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

Conciseness3/5

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

The single sentence is front-loaded and free of waste, but it is under-specified for a six-parameter mutation tool rather than tight. Conciseness is achieved by omission rather than by efficient phrasing.

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

Completeness2/5

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

With no annotations and no output schema, the description should explain side effects, permissions, and failure modes of creating a PR, and it does none of that. The rich input schema compensates for parameter details, but the behavioral picture remains incomplete for a write operation.

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 every parameter, including the destination_branch default of main and close_source_branch default of false, is already documented in the schema. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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

Purpose3/5

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

The description gives a specific verb and resource ("Create a new pull request"), but it is essentially a restatement of the tool name and adds no detail about scope, target repo, or what a PR creation entails. It does distinguish itself from list_pull_requests/get_pull_request by verb alone, but without any differentiating content beyond the name.

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 versus alternatives, no mention of preconditions (e.g., source branch must exist, no duplicate open PR), and no exclusions. An agent must infer everything about invocation context 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.