Skip to main content
Glama
yinghuohuichao

mcp-server-git

git_create_branch

Create a new branch in a Git repository, optionally from an existing base branch, to start work without affecting the current branch.

Instructions

Creates a new branch from an optional base branch

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
base_branchNo
branch_nameYes
Install Server

TDQS

C2.8/5.0
Behavior2/5

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

Annotations indicate the operation is not read-only, not idempotent, and not destructive, which is consistent with creation. However, the description adds little beyond that: it does not clarify whether the new branch is checked out, what the default base is when base_branch is null, or what happens if the branch already exists. These are meaningful behavioral traits an agent would need to know.

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 a single, front-loaded sentence with no wasted words. It states the core action and the key variant (optional base branch) efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple creation tool with no output schema and minimal annotations, the description is incomplete. It fails to specify the default base behavior or whether the branch becomes the current branch, both of which are relevant to correct invocation and subsequent git operations. The presence of git_checkout as a sibling makes this omission more noticeable.

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

Parameters2/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 compensate, but it only mentions the optional base branch. It provides no additional meaning for repo_path or branch_name beyond their titles. The phrase 'optional base branch' adds little because the schema already marks base_branch as optional with a default of null.

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 is clear and specific: it creates a new branch and mentions the optional base branch. It distinguishes this tool from most siblings (status, diff, add, commit, reset, checkout, show, log) because it uniquely creates a branch, but it does not explicitly differentiate from git_branch, which could also have a create mode.

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?

No guidance is provided about when to use this tool versus git_branch or git_checkout. There is no mention of prerequisites, such as being in a Git repository, or exclusions like 'this does not switch branches'. The description implies use for creating branches but offers no contextual direction.

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

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/yinghuohuichao/mcp-server-git'

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