Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

createPullRequest

Create a pull request in a Bitbucket repository, optionally from a fork, with reviewers, description, and draft status.

Instructions

Create a pull request (from a fork: set sourceProjectKey/sourceRepoSlug)

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>",
      "title": "<title>",
      "sourceBranch": "<sourceBranch>",
      "targetBranch": "<targetBranch>"
    },
    "name": "createPullRequest"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNoCreate as draft PR
titleYes
repoSlugYes
reviewersNo
projectKeyNo
descriptionNo
sourceBranchYes
targetBranchYes
sourceRepoSlugNoFork repo slug
sourceProjectKeyNoFork project, e.g. ~USER

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

C2.9/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 burden, and it discloses almost no behavior: it doesn't say whether reviewers are notified, whether the PR is created as non-draft by default, what permissions are required, or whether the operation fails on existing PRs. The fork note is the only behavioral detail, and even that duplicates the schema's own parameter descriptions.

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?

A single front-loaded sentence with no filler, and the fork constraint is placed immediately after the core verb. It is efficient but borders on terse for a 10-parameter mutation tool.

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?

For a 10-parameter, 4-required mutating tool with no annotations and no output schema, the definition should explain branch semantics and reviewer handling but does neither. An agent would have to guess at most parameter meanings and side effects.

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 description coverage is only 30% (draft, sourceRepoSlug, sourceProjectKey), leaving repoSlug, title, sourceBranch, targetBranch, reviewers, projectKey, and description undocumented. The description only references the two fork parameters that the schema already explains, so it does not compensate for the 70% 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?

States a specific verb and resource ("Create a pull request") that clearly separates it from the get*/update*/mergePullRequest siblings. The fork parenthetical adds a scoping case, though it doesn't explicitly name which sibling to use for other operations.

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 only usage guidance is the fork case ("from a fork: set sourceProjectKey/sourceRepoSlug"), which is a conditional hint rather than a when-to-use rule. There is no statement about when not to use it or which sibling handles related workflows like draft conversion or adding reviewers.

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