Skip to main content
Glama

List Project Branches Tool

list_project_branches_tool
Read-only

Lists repository branches for a GitLab project with optional name filtering and pagination, helping you locate branches for review, release, or deployment workflows.

Instructions

List repository branches for a GitLab project.

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": {
      "project_id": "<project_id>"
    },
    "name": "list_project_branches_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1)
searchNoFilter branches by name
per_pageNoResults per page, max 100 (default: 20)
project_idYesProject ID or path

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

C2.7/5.0
Behavior2/5

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

The readOnlyHint=true annotation already tells the agent this is a safe read, and the description adds nothing beyond that — no mention that results are paginated, that the search parameter filters by name, or what the response contains. With annotations present the bar is lower, but here nothing of value is contributed.

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 short sentence with no padding and the verb front-loaded. Its brevity is efficient, though it comes at the cost of the detail noted in other dimensions.

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?

An output schema exists, so return values need not be described, but for a paginated list tool the description never signals pagination (page/per_page defaults) or the name-filtering capability. The definition is minimally usable but leaves the agent to discover list behavior from the schema alone.

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%, with page, per_page, search, and project_id all documented inline, so the baseline of 3 applies. The description adds no extra meaning about parameter interaction (e.g., how search combines with pagination).

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 states a verb and resource ("List repository branches") and scopes it to a GitLab project, but it is almost a verbatim restatement of the tool name and title. It gives no hint of how it differs from siblings such as get_project_branch_tool, compare_branches_tool, or create_branch_tool.

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 rather than get_project_branch_tool (single branch), compare_branches_tool, or create_branch_tool. No prerequisites or exclusions are mentioned, leaving the agent to infer usage purely from the name.

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