Skip to main content
Glama
mcp-bitbucket

mcp-bitbucket

by n11techhub

bitbucket_list_repository_branches

List branches in a Bitbucket repository to inspect available refs, filter by branch name, and sort results for review or automation.

Instructions

Lists branches for 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>"
    },
    "name": "bitbucket_list_repository_branches"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOptional ordering key (e.g., MODIFICATION, NAME).
queryNoOptional filter text to find branches by name.
repoSlugYesSlug of the gateway.
workspaceSlugYesSlug of the workspace/project.

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?

With no annotations, the description carries the full burden and says nothing beyond the read-only implication of 'Lists'. It omits pagination behavior, result ordering, default sort, permissions/auth requirements, and the shape of returned branch data — all material for a listing tool that an agent must call correctly.

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?

One sentence, front-loaded with the core action, and zero redundant wording. It is efficient but so terse that brevity shades into under-specification rather than polished conciseness.

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?

Without annotations or an output schema, the description needed to cover pagination, return shape, and read-only semantics for a 4-parameter listing tool. It supplies none of these, leaving the agent to infer the most operationally important details.

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%, so all four parameters (workspaceSlug, repoSlug, sort, query) are already documented in the schema. The description adds no extra meaning about filtering, sort keys, or defaults, so the baseline 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 ('Lists branches') scoped to 'a Bitbucket repository', which is immediately distinguishable from sibling tools like create_branch or list_repositories. It does not explicitly name or contrast with any sibling, so it stops short of a 5.

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 gives no when-to-use guidance, no prerequisites, and no alternatives (e.g., create_branch for adding branches, or a search tool). Usage is only inferable from the tool name and single sentence; an agent gets no routing help.

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