Skip to main content
Glama

git_branch_info

Analyze branch commits against a base branch and return repository information as YAML. Supports optional branch and repo path parameters.

Instructions

Analyze branch commits against a base and return repository information as YAML. Mirrors omni-dev git branch info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNoBase branch to compare against. Defaults to `main` or `master`.
repo_pathNoPath to the git repository. Defaults to the current working directory.
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It states 'analyze' (implying read-only) and returns YAML, but does not mention safety, side effects, or any restrictions. The information is minimal beyond its basic function.

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 extremely concise: two sentences that quickly convey the core action, target, and output format. Every phrase adds value, and the key information is front-loaded.

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?

Given the tool's low parameter count and lack of output schema or annotations, the description covers the basic purpose and output. However, it omits details like error handling, default behavior, or edge cases (e.g., when branch is invalid). For a simple tool, it is minimally adequate but not thorough.

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?

Both parameters ('branch' and 'repo_path') are described in the input schema with defaults and descriptions. The description adds no additional parameter-level meaning beyond what the schema provides. With 100% schema coverage, a baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('analyze branch commits against a base') and the output format ('YAML'). It also references a known command, making it unambiguous. Among siblings (git_check_commits, git_view_commits, etc.), this tool's purpose is distinct and well-defined.

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?

The description implies it's for comparing branch commits to a base, but fails to provide explicit guidance on when to use this tool versus alternatives like git_check_commits or git_view_commits. No 'when not to use' or context for selection is given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rust-works/omni-dev'

If you have feedback or need assistance with the MCP directory API, please join our Discord server