Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_branch_list

Lists all branches in a Git repository so assistants can inspect available branches before switching, merging, or comparing work.

Instructions

List all branches in the repository

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_branch_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoPathNoPath to git repository (defaults to current directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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 does not say whether output includes remote-tracking branches, detached HEAD state, or the shape/sorting of results. It does not state that the operation is non-mutating or what happens if repoPath is not a git repository.

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 six-word sentence, front-loaded with the verb and resource, with no padding or redundancy. It is efficient, though its brevity leaves the burden of behavioral detail entirely unmet.

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 simple, low-risk listing tool with one optional parameter and no output schema, the definition is minimally adequate. However, the absence of annotations and of any statement about result contents (local vs. remote branches) leaves a real gap for an agent deciding whether this call answers its question.

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 coverage is 100% and the single optional repoPath parameter is already documented with its default in the schema. The description adds nothing about path semantics or failure behavior, 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 ('List') and resource ('all branches in the repository'), which cleanly separates it from git_branch_create and git_branch_delete among the siblings. It stops short of distinguishing scope details such as local vs. remote-tracking branches, but the core operation is unambiguous.

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 versus alternatives such as git_remote_list or git_branch_create. The read-only listing intent is implied by the verb 'List', but no prerequisites, no exclusions and no alternative routing are given.

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