Skip to main content
Glama

git_branches

List local Git branches inside a workspace repository and mark the currently checked-out branch. Provide the repo path to see branch names for version control checks.

Instructions

List local branches for a repository inside the workspace, marking which one is currently checked out.

Args: path: Path to the git repository, relative to the workspace root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that only local branches are listed and that the current branch is marked, but it does not state read-only safety, error behavior for invalid paths, output format, sorting, or whether remote branches are excluded.

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?

The description is front-loaded and appropriately sized. The core purpose appears first, and the Args block cleanly documents the single parameter with no wasted wording.

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 one-parameter read tool with no annotations and no output schema, the description covers purpose and path semantics, but it omits output format details and error behavior. It is minimally adequate but leaves some agent-relevant behavior unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain the single parameter. It does so by clarifying that 'path' is the git repository path relative to the workspace root, adding meaningful context beyond the schema's type and default.

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 states a specific verb and resource: 'List local branches for a repository inside the workspace.' It also adds the key behavior of marking the currently checked-out branch. It does not explicitly differentiate from the sibling git_current_branch, so it misses the full sibling-discrimination bar for 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 explicit when-to-use guidance or comparison to alternatives such as git_current_branch or git_status. The use case is implied by 'list local branches,' but the description never states when this tool should be chosen over siblings.

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