Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

getBranchRestrictions

Retrieve branch restrictions and permissions for a repository to control who can push, delete, or modify protected branches. Filter results by restriction type or matcher pattern.

Instructions

List branch restrictions (permissions)

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": "getBranchRestrictions"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoAll pages, max 1000
typeNoe.g. read-only, no-deletes, pull-request-only
limitNo
startNo
repoSlugYes
projectKeyNo
matcherTypeNoe.g. BRANCH, PATTERN

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

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 behavioral burden, and it discloses almost nothing. "List" weakly implies a read-only operation, but nothing is said about required permissions, pagination behavior, result limits, or what is returned for a repo with no restrictions.

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 with no filler, but at seven parameters and 43% schema coverage this is under-specification rather than genuine conciseness. Nothing is wasted, yet too little is present for the tool's surface area.

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 seven-parameter, read-only listing tool with no annotations and no output schema, the description should explain scoping (repoSlug vs. projectKey), pagination, and the meaning of the type/matcherType filters. None of that is present, leaving the agent dependent on an incompletely documented schema.

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?

With schema description coverage at 43%, the description adds no meaning for any parameter — repoSlug, projectKey, limit, start, and matcherType are left entirely to the schema. Enum-like hints for type and matcherType live in the schema, not the prose; the baseline of 3 for a partially documented schema is the most this earns.

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 ("List branch restrictions") and the parenthetical "(permissions)" disambiguates the domain term. However, it does nothing to separate this tool from the many branch-related siblings such as getDefaultBranch, createBranch, or deleteBranch, so an agent must infer the distinction from the name alone.

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, when not to, or which alternatives to prefer. With seven sibling tools touching branches and repositories, the reader is left to guess whether this is the right call for inspecting branch policy versus fetching branch metadata.

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