Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Git Pull / Push / Fetch

git_sync

Run Git pull, push, or fetch to synchronize a local repository with a remote, specifying repo path, remote, and branch as needed.

Instructions

执行 Git 远端同步操作(pull、push 或 fetch)。

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": {
      "action": "<action>"
    },
    "name": "git_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes同步动作
branchNo分支名称
remoteNo远端名称(如 origin)
repoPathNoGit 仓库路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/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, and it discloses essentially nothing: push is a mutating network operation that can reject, require credentials, or rewrite remote state, yet none of that is stated. Only the bare fact that these are remote sync operations is conveyed, which the name and title already imply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, and the action list arrives immediately. It is efficient to the point of under-specification, but no sentence is wasted.

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 4-parameter mutating network tool with no annotations and no output schema, the definition leaves an agent without credential expectations, failure modes, or any description of what the call returns. The schema alone is not enough to call this safely or correctly.

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 action, branch, remote, and repoPath are already documented with types and an enum, which sets the baseline at 3. The description adds no meaning beyond the schema, such as whether branch is required for push or what defaults apply when remote or repoPath are omitted.

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 ('Git 远端同步操作') and enumerates the three supported actions (pull、push、fetch), which tells an agent this is the network-sync tool rather than the branch/commit/diff siblings. It stops short of explicitly contrasting with those siblings, but the action list makes the scope unambiguous.

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: nothing says when to choose pull versus fetch (a very common agent confusion), no prerequisites such as needing a configured remote or upstream branch, and no mention of alternatives among the git_* siblings. The reader must infer all routing from the action enum alone.

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