Skip to main content
Glama
git MCP server

git MCP server

Official

git_remote

Read-onlyIdempotent

Lists a repository's remotes with fetch and push URLs, redacting credentials in URL userinfo, query, or fragment so remote configuration can be inspected without exposing secrets.

Instructions

Lists the repository's remotes with their fetch and push URLs, like git remote -v. Credentials embedded in a URL's userinfo, query values or fragment are shown as ; path segments are shown as configured

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>"
    },
    "name": "git_remote"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathYesThe path to the Git repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: credentials in userinfo, query values or fragments are redacted, while path segments are shown as configured — an agent needs this to interpret the output and to know it cannot recover secrets from it.

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?

Two tight sentences: the core behavior leads, and the redaction caveat follows. Every clause carries information an agent would otherwise have to discover empirically; nothing is redundant with the name or schema.

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?

For a one-parameter read-only listing tool with no output schema, the definition covers what is returned (remote names plus fetch/push URLs) and an important property of that output (redaction). The only gap is the absence of any note on failure modes, such as a missing or non-Git path, which is minor given the tool's simplicity.

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?

There is a single required parameter, `repo_path`, and schema description coverage is 100%, so the schema alone fully documents it. The description adds no additional meaning about path resolution, relative vs absolute paths, or error behavior for a non-repository path, which is the expected baseline-3 outcome.

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 ("lists the repository's remotes with their fetch and push URLs") and anchors it to a well-known CLI equivalent, `git remote -v`. It is unambiguously a read-only listing operation, distinguishable from the mutation siblings in the catalog, though it does not explicitly contrast itself with any named sibling.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternatives. Usage is only implied by the `git remote -v` analogy and the tool's narrow scope, which is enough for an agent to infer intent but not enough to route between options deliberately.

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