Skip to main content
Glama

git_core

Perform core Git operations to check status, review logs and diffs, initialize or clone repositories, stage and commit files, then push, pull, or fetch changes.

Instructions

Git core operations — status, log, diff, show, init, clone, add, commit, push, pull, fetch.

Core workflow tools. For branch/tag/stash operations use git_branch. For remote/reset/clean/submodule/bisect/worktree use git_admin. Force-push/pull/fetch/clone need confirm=True + confirm_token (red-shelf gate). push accepts tag_name to push a single tag (git push tag <tag_name>).

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": {
      "operation": "<operation>"
    },
    "name": "git_core"
  }
}

Input Schema

NameRequiredDescriptionDefault
amendNo
depthNo
filesNo
forceNo
branchNo
commitNo
remoteNoorigin
commit2No
confirmNo
messageNo
onelineNo
repo_urlNo
tag_nameNo
all_filesNo
file_pathNo
max_countNo
operationYes
repo_pathNo
target_dirNo
set_upstreamNo
confirm_tokenNo
initial_branchNomain

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A4.1/5.0
Behavior4/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 does disclose the non-obvious red-shelf gate requiring confirm plus confirm_token for force-push/pull/fetch/clone. It also notes the tag_name push variant syntax. It does not discuss error behavior when the gate is bypassed or the permission/auth requirements for mutating operations.

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?

The operation list is front-loaded in the first line, followed by routing and gating details in short sentences. The enumeration is long but functional; nothing is padding, though the opening line is dense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the routing plus safety gate are well covered. However, for a 22-parameter tool spanning eleven operations with zero schema coverage, the absence of any operation-to-parameter mapping leaves the agent guessing which fields each operation needs.

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 22 parameters, and the description only explains tag_name and the confirm/confirm_token pair. Parameters such as amend, depth, oneline, max_count, set_upstream, initial_branch, commit2, all_files, and target_dir are left completely undocumented, and there is no mapping of which parameters apply to which operation.

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 enumerates the exact operations covered (status, log, diff, show, init, clone, add, commit, push, pull, fetch), so the agent knows precisely what the tool does without opening the schema. It also distinguishes itself from siblings by 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?

It explicitly routes branch/tag/stash work to git_branch and remote/reset/clean/submodule/bisect/worktree work to git_admin, which is a clear when-not clause with named alternatives. It also states the precondition for force operations (confirm=True plus confirm_token), leaving little to inference.

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