Skip to main content
Glama
jesspig

git-mcp-server

by jesspig

git_push

Destructive

Publish local commits to a remote repository, optionally including tags; force push requires explicit confirmation. Use when local work is ready to share.

Instructions

Push commits to a remote (default origin), optionally including tags. Use this to publish local commits when work is ready to share, and to push tags for releases; force=True overwrites remote history and requires confirmed=True, tags=True also pushes tags. Does NOT integrate upstream work — if the remote has diverged, use git_fetch or git_pull first. Best for: publishing local commits to the remote repository. Returns: 'Pushed to 'origin'.' followed by per-ref lines; use git_remote to check where the push will go.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoAlso push tags
forceNoForce push
branchNoBranch to push, defaults to the current branch
remoteNoRemote to push to, defaults to origin
confirmedNoExplicit confirmation required when force is True
repo_pathNoPath to the git repository, defaults to '.' (the server working directory).
Behavior5/5

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

Annotations declare destructiveHint=true, but the description adds specifics: force overwrites remote history and requires confirmed=True, tags behavior, and the return format. This is helpful context beyond annotations, giving agents important behavioral details.

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?

Three sentences, front-loaded with the main action. Every sentence adds value: purpose, usage guidelines, and return info. No redundancy or wasted words.

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

Completeness5/5

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

Despite no output schema, the description provides return format, remote divergence handling, and parameter behavior. With annotations and full schema coverage, the agent has sufficient information to select and invoke the tool correctly.

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

Parameters4/5

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

Schema covers all 6 parameters (100%). The description adds behavioral meaning for force (overwrites history, requires confirmation) and tags (pushes tags), which goes beyond schema descriptions. It doesn't detail branch/remote/repo_path, but those are self-explanatory, so this is above baseline.

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

Purpose5/5

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

The description uses a specific verb ('Push') and names the resource ('commits to a remote'), with a clear default ('origin'). It distinguishes from siblings by referencing git_fetch/git_pull for integration, clarifying this tool is for publishing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to use ('publish local commits', 'push tags for releases') and when not to ('Does NOT integrate upstream work'), and names alternatives ('use git_fetch or git_pull first'). Also notes force requires confirmation, providing clear contextual guidance.

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

Install Server

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

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