Skip to main content
Glama

Git Commit Tools

git_commits
Destructive

Manage Git commit workflows: stage changes, create or amend commits, unstage, reset, revert, undo, and handle work-in-progress or cleanup actions.

Instructions

Commit-area tool. Use action=add|restore|commit|reset|revert|undo|nuke|wip|unstage|amend.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
refNo
modeNomixed
signNoSign the commit. Defaults to the server GIT_AUTO_SIGN_COMMITS setting.
amendNo
pathsNo
actionNocommit
sourceNo
stagedNo
targetNo
confirmNo
messageNo
no_editNo
mainlineNo
worktreeNo
no_commitNo
no_verifyNo
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
signing_keyNo
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

D1.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description adds nothing beyond that: it does not say what gets destroyed, whether confirmation is required, or how destructive actions like reset/nuke differ from safe ones like add.

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

Conciseness2/5

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

The definition is short and front-loaded, but this is under-specification rather than conciseness. Two terse sentences do not earn their place because they convey almost no usable information for a 20-parameter tool.

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

Completeness1/5

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

A destructive, non-idempotent tool with 20 parameters, 15% schema coverage, and no output schema requires substantial description to be usable. This definition omits virtually everything an agent would need to invoke it safely and correctly.

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

Parameters1/5

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

With 20 parameters and only 15% schema description coverage, the description must compensate, but it does not. Its only parameter content repeats the action enum values already present in the schema, leaving 17 parameters such as mode, ref, mainline, source, and target undocumented in either place.

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

Purpose2/5

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

"Commit-area tool" largely restates the name and title; it does not state what the tool actually does. The action list hints at capabilities but is a parameter enumeration, not a purpose statement distinguishing this multiplexed tool from siblings like git_status or git_stash.

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?

The only guidance is how to set the action parameter, not when to use this tool versus alternatives. No when-to-use, when-not-to-use, or prerequisite context is given, and no sibling is named.

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