Skip to main content
Glama
mcp-bitbucket

mcp-bitbucket

by n11techhub

bitbucket_create_branch

Creates a new branch in a Bitbucket repository, optionally from a specified source branch or commit, to isolate changes or start feature work.

Instructions

Creates a new branch in a Bitbucket repository.

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": {
      "workspaceSlug": "<workspaceSlug>",
      "repoSlug": "<repoSlug>",
      "newBranchName": "<newBranchName>"
    },
    "name": "bitbucket_create_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoSlugYesSlug of the gateway.
newBranchNameYesName for the new branch.
workspaceSlugYesSlug of the workspace/project.
sourceBranchOrCommitNoOptional source branch name or commit ID to create the new branch from. Defaults to the gateway's default branch if not specified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

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 behavioral burden, and it only conveys that a write occurs. It does not say what happens if the branch already exists, whether the operation is idempotent, what permissions are needed, or whether existing branches/commits are affected.

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 or redundancy. It is efficient, though its terseness means there is little structure to evaluate.

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 mutation tool with no annotations and no output schema, the description is too thin: it leaves error conditions, side effects, and post-call state entirely unexplained. The rich schema mitigates the parameter side but not the behavioral side.

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%, including the important note that sourceBranchOrCommit defaults to the default branch, so the schema already documents all four parameters well. The description adds no additional parameter meaning beyond the schema, which is the expected baseline here.

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 ('Creates a new branch in a Bitbucket repository'), which is enough to distinguish it from siblings like bitbucket_create_pull_request or bitbucket_list_repository_branches. It stops short of naming or contrasting an alternative, but the action and target are 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?

There is no guidance on when to use this tool versus alternatives, no mention of checking existing branches first (e.g., via bitbucket_list_repository_branches), and no preconditions such as required permissions or branch-naming rules. The agent must infer all usage context.

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