Skip to main content
Glama
mcp-server-git

mcp-server-git

by Arnabdaz

git_push

Pushes local commits to a specified remote and branch, with an optional force flag to overwrite remote history.

Instructions

Push changes to remote repository

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": {
      "repo_path": "<repo_path>",
      "remote": "<remote>",
      "branch": "<branch>"
    },
    "name": "git_push"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
branchYes
remoteYes
repo_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.2

TDQS

C2.4/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 entire behavioral burden, and it discloses almost nothing. It does not mention that push is a mutating operation against a shared remote, that it can fail on non-fast-forward, that it requires credentials/authorization, or that the 'force' parameter can overwrite remote history destructively. The single word 'Push' implicitly signals mutation, which is the only behavioral content present.

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 a single short sentence with no filler or redundancy, so it is maximally concise. However, that brevity is achieved through under-specification rather than discipline, leaving nothing front-loaded beyond the bare verb.

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 four-parameter mutating tool against a remote with no annotations, no output schema, and no parameter documentation, so the description needed to do substantial work and instead does almost none. An agent cannot learn from this definition what force push means, what a successful push returns, or how failures are reported.

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

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description does not name or explain any of the four parameters. Most critically, the boolean 'force' parameter — the highest-risk knob here — receives no explanation of what it does or when it is acceptable, and repo_path/remote/branch are left entirely to bare titles.

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 gives a specific verb and resource ('Push changes to remote repository'), which clearly separates it from read-oriented siblings like git_fetch, git_pull, git_status and git_log. What is missing is any statement of scope, such as whether it pushes the current branch, a named branch, or all refs, so it is clear but undifferentiated in detail.

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 when-to-use guidance, no mention of prerequisites (a configured remote, an existing branch, prior commit), and no reference to alternatives such as git_pull for the reverse direction. Nothing tells the agent under what conditions pushing is appropriate or how it differs from git_fetch/git_pull.

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