Skip to main content
Glama

git_admin

Perform advanced Git admin work like managing remotes, resetting or reverting commits, cherry-picking, cleaning, submodules, bisect, and worktrees, with confirmation for destructive actions.

Instructions

Git admin operations — remote, reset, revert, cherry-pick, clean, submodule, bisect, worktree.

For core operations (status, log, commit, push) use git_core. For branch operations use git_branch. reset/clean/worktree_remove need confirm=True + confirm_token (red-shelf gate).

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_admin"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNomixed
forceNo
commitNo
remoteNoorigin
confirmNo
dry_runNo
operationYes
recursiveNo
repo_pathNo
remote_urlNo
remote_nameNo
include_dirsNo
confirm_tokenNo
submodule_urlNo
worktree_pathNo
submodule_pathNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one important behavioral trait the schema cannot: reset/clean/worktree_remove are gated behind confirm=True plus confirm_token (a red-shelf gate). It says nothing about what reset/clean actually destroy, whether dry_run is honored, how force interacts with reset, or any auth/permission requirements for remote and submodule 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?

Three short lines, front-loaded with the operation inventory, then routing, then the safety gate. No filler. The dense comma list is efficient rather than padded, though the confirm-gate sentence could name the exact operation strings more consistently with the schema.

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?

An output schema exists, so return values need no explanation, but the tool is a 16-parameter destructive multi-operation surface with no annotations and no parameter documentation. The description covers routing and the confirmation gate but leaves the agent unable to populate mode, force, remote_*, submodule_*, or worktree_path correctly, which is the main risk for this tool.

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?

There are 16 parameters with 0% schema description coverage, and the description explains only confirm and confirm_token. Key ambiguity is unaddressed: mode (mixed/soft/hard) for reset, the distinction between remote, remote_name, and remote_url, what recursive and include_dirs control for submodules, or what worktree_path/submodule_path expect. Two of sixteen parameters documented is well below what a 0%-coverage schema requires.

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 the resource (git admin operations) and enumerates the concrete operations covered: remote, reset, revert, cherry-pick, clean, submodule, bisect, worktree. It explicitly distinguishes itself from git_core and git_branch, so an agent can route without opening the schema. The only weakness is that it is a grab-bag of eight operations rather than a single verb+resource, which leaves the boundary slightly fuzzy.

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

Usage Guidelines4/5

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

It gives explicit negative routing: core operations (status, log, commit, push) go to git_core, branch operations go to git_branch. It also states the precondition for the destructive subset (confirm=True plus confirm_token). It does not say how to choose among the eight listed admin operations or when admin operations are inappropriate, so it stops short of a 5.

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