Skip to main content
Glama

git_push

Push local Git commits to a remote repository in the Gitopia MCP Server. Specify repository path and optional parameters like branch, remote, or force push.

Instructions

Use this when you have local commits ready to publish to the remote. Requires 'repo_path'. Optional: 'remote' (default 'origin'), 'branch' (default current), 'force', 'set_upstream', 'dry_run'. Prefer commit_and_push_changes for a single-step stage+commit+push workflow. See also: commit_and_push_changes, create_pull_request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYesRepository path relative to workspace
remoteNoRemote name (default: origin)
branchNoBranch to push
forceNoForce push
set_upstreamNoSet upstream tracking
dry_runNoDry run
Behavior3/5

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

No annotations provided, so description carries full burden. It lists behavioral flags (force, dry_run, set_upstream) and defaults, but doesn't explain their implications (e.g., force overwrites remote history, dry_run simulates without executing) or mention authentication requirements. Adequate but lacks safety warnings.

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?

Extremely efficient: front-loaded with usage condition, followed by required/optional params with defaults, preference statement, and cross-references. Four sentences, zero waste, every clause provides actionable guidance.

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

Completeness4/5

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

Given 100% schema coverage and no output schema, the description adequately covers the tool's purpose, prerequisites (local commits), and workflow alternatives. Minor gap: doesn't mention return values or error conditions (e.g., remote rejection), but sufficient for a push operation.

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 coverage is 100%, establishing baseline 3. The description mirrors schema content by listing parameters and defaults without adding deeper semantic context (e.g., not explaining that 'force' is destructive or what 'set_upstream' enables). Meets baseline but doesn't compensate beyond schema.

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?

States the specific action (publish/push local commits to remote) and scope clearly. Explicitly distinguishes from sibling 'commit_and_push_changes' by recommending this tool only when commits are already prepared locally.

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?

Excellent guidance: explicitly states when to use ('when you have local commits ready to publish'), names the preferred alternative ('Prefer commit_and_push_changes'), and references related siblings ('See also: commit_and_push_changes, create_pull_request').

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

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