Skip to main content
Glama

create_pull_request

Create a Bitbucket pull request from a source branch to propose code changes, request reviews, and merge into a target branch.

Instructions

Create a new pull request to propose code changes, request reviews, or merge feature branches.

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

Input Schema

NameRequiredDescriptionDefault
titleYesClear, descriptive title for the pull request.
projectNoBitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. Use list_projects to discover available projects.
reviewersNoArray of Bitbucket usernames to assign as reviewers.
repositoryYesRepository slug where the pull request will be created.
descriptionNoDetailed description of changes (Markdown supported).
sourceBranchYesSource branch containing the changes.
targetBranchYesTarget branch for merging.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 disclosure burden and delivers almost none of it: no mention of permission requirements, no behavior on duplicate PRs or conflicting branches, no indication of whether draft PRs are supported, and no side effects beyond the implied creation. Only the bare mutation semantics are conveyed.

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 the action stated first, which is efficient. The final clause about merging branches slightly overreaches what the tool does and would be better replaced with substantive guidance.

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?

This is a seven-parameter mutation with no annotations and no output schema, so the description should compensate with behavioral and preconditional detail. It does not: an agent knows what it creates but not what it needs, what it returns, or how failures manifest.

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%, with each of the seven parameters already documented, including the project fallback to BITBUCKET_DEFAULT_PROJECT. The description adds no additional meaning such as reviewer assignment rules or branch naming constraints, so the baseline of 3 applies.

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 new pull request"), which clearly separates it from sibling operations like merge_pull_request or decline_pull_request. The trailing clause about merging feature branches muddies the purpose slightly, since creating a PR does not itself merge anything, but the core action is unambiguous.

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 lists motivations ("propose code changes, request reviews") but never states when to prefer this tool over alternatives, nor any prerequisites such as required branch existence or permissions. There are no exclusions or routing hints to siblings like merge_pull_request.

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