Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

deleteBranch

Delete a branch from a Bitbucket repository, optionally verify with a dry run. Requires BITBUCKET_ENABLE_DANGEROUS=true to enable the destructive operation.

Instructions

Delete a branch (needs BITBUCKET_ENABLE_DANGEROUS=true)

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

Input Schema

NameRequiredDescriptionDefault
nameYesBranch name to delete
dryRunNoOnly check
repoSlugYes
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose one genuinely valuable trait: the operation is gated behind BITBUCKET_ENABLE_DANGEROUS=true, signaling that it is disabled by default and destructive. It omits other behavioral facts an agent needs, such as irreversibility, required permissions, and what happens to commits or open pull requests referencing the branch.

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?

Two compact clauses, front-loaded with the action and immediately followed by the gating condition; there is no filler. It is arguably too terse rather than too wordy, but nothing present is wasted.

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

Completeness3/5

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

For a destructive, zero-annotation, four-parameter mutation tool with no output schema, the definition covers only the danger flag. Missing are the dryRun safety-valve explanation, identification requirements for repoSlug/projectKey, and any statement of effects or failure conditions, leaving meaningful gaps.

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 50%: 'name' and 'dryRun' are documented in the schema, while 'repoSlug' and 'projectKey' have no description anywhere. The description adds nothing about any of the four parameters, so the undocumented half stays opaque, and even the terse 'Only check' for dryRun is left unexpanded.

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?

The description states a specific verb and resource ('Delete a branch'), which is unambiguous and clearly separable from the sibling createBranch. It stops short of explaining scope, such as whether it deletes only the ref or requires the branch be unmerged, but the core purpose is immediately legible.

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 choose this over alternatives, nor any warning about preconditions like merged-status checks or protected branches. The only contextual hint is the environment flag, which is a deployment prerequisite rather than usage guidance.

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