Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_fetch

Download objects and refs from another repository to update local Git state, with optional remote, branch, and repository path settings.

Instructions

Download objects and refs from another repository

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNoSpecific branch to fetch
remoteNoName of the remote to fetch from
repoPathNoPath to git repository (defaults to current directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With empty annotations, the description carries the full burden and discloses almost nothing behavioral. It does not say that this updates remote-tracking refs but leaves the working tree untouched, that it contacts a network remote (and may require credentials), or what happens when branch/remote are omitted.

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 zero filler or redundancy. Its brevity is efficient, though it borders on under-specification rather than being optimally informative.

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 network-touching, ref-mutating git operation with no annotations and no output schema, the description omits the details an agent most needs: side effects on local refs, credentials/network requirements, and default behavior when all optional parameters are omitted. It describes the git command by name but not the tool's behavior in context.

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% and each of the three parameters (branch, remote, repoPath) is documented in the schema, so a baseline of 3 applies. The description adds no defaulting behavior such as which remote is used when 'remote' is unspecified, which the schema only partially covers for repoPath.

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 ('Download') and resources ('objects and refs') plus the source ('another repository'), so an agent knows this is a fetch operation. It does not distinguish itself from the closely related git_pull sibling, which also brings remote commits in but merges them, leaving a real ambiguity unresolved.

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 when to prefer git_pull or git_clone, and no prerequisites such as needing a configured remote. The agent must infer the fetch-vs-pull distinction entirely from its own git knowledge.

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