Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_branch_delete

Deletes a Git branch by name, with an optional force flag to remove unmerged branches. Use it to clean up stale or merged branches in a repository.

Instructions

Delete a 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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce delete the branch even if not fully merged
repoPathNoPath to git repository (defaults to current directory)
branchNameYesName of the branch to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

D1.9/5.0
Behavior1/5

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

With no annotations, the description carries the full burden of behavioral disclosure and provides none. It does not say the operation is destructive, that unmerged commits can be lost, that deletion fails without force on unmerged branches, or that the current branch cannot be deleted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short and front-loaded with the verb and resource. It is not padded, but the terseness reflects under-specification rather than disciplined conciseness.

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

Completeness1/5

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

For a destructive mutation tool with no annotations, no output schema, and a force flag that can irreversibly discard commits, a four-word description is wholly inadequate. Critical safety and prerequisite information is absent.

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%, so all three parameters including force and repoPath are already documented in the schema. The description adds no meaning beyond that, which is the baseline expectation at full coverage.

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

Purpose2/5

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

The description is 'Delete a branch', which essentially restates the tool name git_branch_delete. It identifies the verb and resource but adds no scope, differentiation, or detail beyond the name itself.

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 given about when to use this tool versus alternatives, no mention of switching away from the branch first, and no mention of when force is appropriate. The agent is left to infer everything.

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