Skip to main content
Glama

list_branches

Retrieve branches from a Bitbucket repository, including names, latest commit details, default status, and filtering or pagination options.

Instructions

List branches in a repository. Returns branch names, latest commit info, and whether the branch is the default.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of branches to return (default: 25, max: 1000).
startNoStart index for pagination (default: 0).
projectNoBitbucket project key (optional if default project configured).
filterTextNoFilter branches by name substring.
repositoryYesRepository slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 'List' implies a non-mutating read, and the second sentence usefully discloses the return contents (names, latest commit info, default flag), but permissions, rate limits, and pagination behavior are left to the schema, which is a notable gap with no annotations present.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero filler; the core purpose is front-loaded and the return-value summary follows immediately. Nothing needs to be cut or moved.

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

Completeness4/5

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

This is a simple read-only listing tool with fully documented parameters and no output schema, and the description covers both what it does and what it returns. It falls short of 5 only because it omits any mention of authorization expectations or behavior when the repository does not exist.

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 five parameters (limit, start, project, filterText, repository) are already documented with defaults and constraints. The description adds no further meaning about how these parameters affect results, 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?

The description uses a specific verb+resource ('List branches') and states the scope ('in a repository'), so an agent can tell it apart from list_projects and list_repositories. It does not explicitly name or differentiate against any sibling tool, which keeps it 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?

There is no when-to-use or when-not-to-use guidance, and no alternatives are mentioned (for example, using search or browse_repository instead when the branch name is unknown). The only usage signal is the implied read-only 'list' framing.

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