Skip to main content
Glama

git_push

Push a branch to a remote, defaulting to the current branch, or set tags=true to push tags instead. Force pushes and ref deletion are unsupported.

Instructions

Push a branch (default: current) to a remote. Force pushes and ref deletion are not supported. tags=true pushes tags instead of a branch.

Input Schema

NameRequiredDescriptionDefault
repoNo.
tagsNo
branchNo
remoteNoorigin
set_upstreamNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key limitations: no force push, no ref deletion, and the tags-mode switch. However, it says nothing about network/credential requirements, non-fast-forward rejection, or that the operation mutates a remote (an irreversible side effect), which is exactly the context an agent needs before calling a push.

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 short sentences, front-loaded with the primary action and default, then constraints, then the tags special case. No filler and no repetition of the title.

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?

For a 5-parameter mutation tool with zero annotation coverage and no schema descriptions, the description is too thin: it omits remote-selection semantics, upstream tracking behavior, and failure conditions. An output schema exists, so return values need not be explained, but the pre-call and side-effect picture is incomplete.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description must compensate and does so only partially: it explains 'tags' and the default for 'branch' (via 'default: current'). Nothing addresses 'repo', 'remote', or 'set_upstream', leaving three parameters with no semantic guidance anywhere.

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?

States a specific verb+resource ('Push a branch ... to a remote') and specifies the default branch behavior, which an agent can act on directly. No sibling performs pushes, so differentiation is implicit rather than stated; the description also adds scope limits (no force push, no ref deletion) that sharpen the picture.

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

Usage Guidelines3/5

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

It gives one conditional routing rule ('tags=true pushes tags instead of a branch') and a negative constraint (force pushes and ref deletion unsupported), but never says when to prefer this over workflows it depends on (git_commit, git_add, git_branch_create) or what prerequisite state is required. Usage is implied rather than spelled out.

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