Skip to main content
Glama

Git

git
Destructive

For reading use git_read, which is read-only and needs no approval: "status", "log", "diff", "remote_show" here are deprecated (still works). The project's git repository in /workspace (the code; /data and the database are not in git). action "status", "log" (recent commits), "diff" (uncommitted changes; paths to limit), "commit" (message; stages everything unless paths are given; authored as the user with you as co-author; a commit containing a secret is refused with the file and line). Remote: "remote_set" (github: "owner/name" for a GitHub repository the user connected in the portal (Project › Code), nothing to add; or url, an SSH address such as git@gitlab.com:you/app.git, which returns a deploy key to add to the repository with write access; rotate_key: true for a new key), "remote_show", "remote_remove", "push" (the current branch; history is scanned for secrets first; force: true overwrites the remote branch), "pull" (fetches the current branch; a snapshot is taken first; strategy "ff-only" by default or "merge"). An imported project keeps the original repository as remote "imported-from": pull with remote "imported-from" merges its updates (a snapshot first; conflicts are listed and nothing changes).

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

Input Schema

NameRequiredDescriptionDefault
urlNoremote_set: the repository's SSH address.
forceNopush: replace the remote branch (with lease).
pathsNo
actionYes
githubNoremote_set: owner/name of a GitHub repository, through the LazyFrog GitHub App.
remoteNopull: "imported-from" takes the updates of the repository it was imported from.
messageNo
projectYesProject slug or id.
strategyNo
rotate_keyNo
idempotency_keyNoAny unique string; repeating a call with the same key does not repeat its effect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Despite annotations already flagging destructive and open-world behavior, the description adds real operational context: commit stages everything unless paths are given, commits are authored as the user with the agent as co-author, a secret in a commit is refused with file and line, push scans history for secrets first, pull takes a snapshot before fetching, and conflicts are listed with nothing changed. What it omits is the return shape for status/log/diff, which matters since no output schema exists.

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?

Front-loaded with the most important routing rule (use git_read to read) and free of filler, but the single dense paragraph of quoted action fragments is slow to parse for an 11-parameter tool. Slightly more structure per action would improve scanability without adding length.

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 destructive multi-action tool with 11 parameters and no output schema, the description covers the risky paths well (secret scanning on commit and push, snapshot-before-pull, conflict handling). It leaves the agent guessing what status/log/diff actually return and what a refused commit or failed push looks like.

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

Parameters5/5

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

Schema coverage is only 55%, yet the description compensates: it explains that url is an SSH address returning a deploy key to add with write access, github takes owner/name for a repo connected through the portal, rotate_key:true issues a new key, paths limits diff output and otherwise scopes what commit stages, and strategy defaults to ff-only. Only idempotency_key and the project slug are left to the schema, which already documents both.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (the project's git repository in /workspace), enumerates the exact actions (status, log, diff, commit, remote_set, remote_show, remote_remove, push, pull) and immediately distinguishes itself from the sibling git_read. It also scopes the repository (code only; /data and the database are not in git), which an agent cannot infer from the name.

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

Usage Guidelines5/5

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

Opens with an explicit routing rule: for reading use git_read, and status/log/diff/remote_show here are deprecated. It then gives per-action conditions, e.g. ff-only is the default pull strategy with merge as the alternative, and force:true overwrites the remote branch. It even documents the imported-from workflow for imported projects.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources