Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_push

Push local commits and branch updates to a remote Git repository, with optional force push, remote selection, and upstream tracking setup.

Instructions

Update remote refs along with associated objects

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_push"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce push
branchNoBranch to push
remoteNoName of the remote to push to
repoPathNoPath to git repository (defaults to current directory)
setUpstreamNoSet upstream tracking

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing about the dangerous aspects of this operation: non-fast-forward rejection, what --force overwrites on the remote, or that setUpstream mutates local config. For a destructive remote-mutating tool with zero annotation coverage, this is a substantial gap.

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?

It is a single sentence with no padding, which is structurally clean, but brevity here comes at the cost of under-specification rather than efficiency. There is no front-loaded statement of what the agent actually accomplishes.

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?

A five-parameter mutating tool with no annotations and no output schema needs the description to cover safety, preconditions, and return behavior; none of that is present. The definition is not sufficient on its own for an agent unfamiliar with git to invoke it safely.

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 every parameter including force, branch, remote, repoPath, and setUpstream is already documented in the schema. The description adds no extra meaning about parameter interplay, such as that force bypasses the fast-forward check, so the baseline of 3 applies.

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?

The sentence 'Update remote refs along with associated objects' names a verb and resource, but it is git's internal phrasing rather than an agent-facing statement of purpose (pushing local commits to a remote branch). It does not distinguish this tool from close siblings such as git_fetch or git_pull, whose behavior overlaps heavily with it.

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?

The description gives no indication of when to use push versus git_pull or git_fetch, no prerequisites (upstream configured, clean working state, authentication), and no warning about when not to push. An agent must already know git semantics to choose correctly.

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