Skip to main content
Glama
mcp-server-git

mcp-server-git

by Arnabdaz

git_fetch

Fetches changes from a specified remote Git repository into a local repo, with optional branch or all-remotes support.

Instructions

Fetch changes from remote repository

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": {
      "repo_path": "<repo_path>",
      "remote": "<remote>"
    },
    "name": "git_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNo
remoteYes
repo_pathYes
all_remotesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.2

TDQS

C2.6/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 whole burden. It omits the defining behavioral trait of fetch — that it updates remote-tracking refs without modifying the working tree or current branch — and says nothing about authentication or network failure handling. That omission is exactly where fetch and pull diverge behaviorally, so it matters.

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

Conciseness3/5

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

A single short sentence with no wasted words, front-loaded with the verb. Its brevity is achieved through under-specification rather than discipline, so it reads as terse rather than efficient.

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?

With four undocumented parameters, no annotations, and no output schema, the definition leaves an agent guessing at required argument semantics and at whether the operation touches the working tree. For a git mutation-adjacent network operation, that is insufficient.

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 four parameters, so the description is the only source of meaning and it explains none of them. 'From remote repository' hints at the required 'remote' param, but 'branch', 'repo_path', and especially 'all_remotes' (which makes 'remote' arguably redundant) are left entirely unexplained.

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 names a specific git verb and resource ('Fetch changes from remote repository'), so an agent knows this downloads remote refs. It does not distinguish itself from the sibling git_pull, which performs a fetch plus a merge, leaving the closest alternative ambiguous.

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 statement of when to use this tool rather than git_pull, or of prerequisites such as an initialized repo or configured remote. The agent must infer the fetch-vs-pull distinction entirely from the tool name.

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