Skip to main content
Glama

git_branch_list

Read-onlyIdempotent

Lists Git branches with their last commit and upstream tracking; set all_branches to include remote branches.

Instructions

List branches with their last commit and upstream (read-only). all_branches includes remotes.

Input Schema

NameRequiredDescriptionDefault
repoNo.
all_branchesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the parenthetical '(read-only)' is largely a restatement. The genuinely additive part is disclosing that each branch is reported with its last commit and upstream, but nothing is said about behavior when the path is not a git repo or when no branches exist.

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 short sentences, zero filler, with the core action front-loaded and the parameter clarification second. Every clause carries information.

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?

An output schema exists so return values need not be described, and annotations cover the safety profile; the description handles the non-obvious parameter. The only real gap is the undefined 'repo' parameter, minor for a 2-param read-only tool.

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 0%, so the description must compensate. It does explain all_branches ('includes remotes'), adding real meaning over the bare boolean, but 'repo' (default '.') is left entirely unexplained — no indication it is a path or that it defaults to the working directory.

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?

Clear specific verb+resource ('List branches') plus what each entry contains (last commit, upstream). It is implicitly distinct from siblings like git_branch_create and git_switch, but never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the verb 'List'; there is no statement of when to use this versus git_switch, git_log, or git_remote_info, and no prerequisites (e.g., must be inside a repo, what 'repo' defaults to).

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