Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_branch_create

Creates a new Git branch by name in a specified repository or the current directory. Use it to start isolated work on a feature or fix without altering existing branches.

Instructions

Create a new branch

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "branchName": "<branchName>"
    },
    "name": "git_branch_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoPathNoPath to git repository (defaults to current directory)
branchNameYesName of the branch to create

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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 disclosure burden and largely fails it: it does not say whether the new branch is checked out, whether it errors when the branch already exists, whether an upstream/remote tracking branch is created, or what the response contains. Only the bare fact that a mutation occurs is conveyed.

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 short phrase, front-loaded and free of filler — nothing is wasted. Its terseness is a completeness problem rather than a structural one, so it scores well here but not perfectly.

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?

This is a mutating git operation with no annotations and no output schema, so the description needed to cover preconditions, failure modes, and whether HEAD moves. None of that is present, leaving an agent under-informed for a tool that changes repository state.

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 description coverage is 100%, with both repoPath and branchName documented inline, so the baseline of 3 applies. The description contributes no additional meaning such as naming constraints, ref format, or default-branch relationships.

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

Purpose3/5

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

"Create a new branch" names a concrete verb and resource, so the basic intent is unambiguous. However, it adds nothing beyond the tool name git_branch_create and gives no scope detail (branch created from current HEAD? local only?), leaving the purpose at minimum viable.

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 git_checkout or git_branch_list, no statement of preconditions (e.g., must be inside a repo or a valid repoPath), and no exclusions. An agent must infer all routing decisions.

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