Skip to main content
Glama
jesspig

git-mcp-server

by jesspig

git_commit

Create a commit with a message or amend the last commit, optionally skipping pre-commit hooks. Use after staging changes to record them, or to fix the previous commit.

Instructions

Create a commit with the given message, or amend the last one. Use this when staged changes are ready to record, to fix the previous commit's message or contents (amend=True), or to skip pre-commit hooks (no_verify=True). Does NOT stage files — run git_add first; check git_status if nothing appears staged. Best for: recording staged changes after git_add. Returns: confirmation with the new commit hash, or 'No changes to commit' with a staging hint when untracked files are present.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amendNoAmend the last commit
messageYesCommit message
no_verifyNoSkip pre-commit and commit-msg hooks
repo_pathNoPath to the git repository, defaults to '.' (the server working directory).
Behavior5/5

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

Annotations declare non-read-only, non-idempotent, non-destructive. The description adds key behavioral traits: it doesn't stage files, can amend previous commits, and returns 'No changes to commit' with a staging hint. No contradiction with annotations.

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?

Four sentences, front-loaded with primary purpose, and every sentence provides useful guidance (when to use, what it doesn't do, return behavior). No wasted words.

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

Completeness5/5

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

Given the tool's moderate complexity and absence of output schema, the description covers use cases, side-effect boundary, and return values. It is complete for an agent to select and invoke correctly among many git siblings.

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

Parameters4/5

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

Schema already covers all parameters (100% coverage), so baseline is 3. The description enriches semantics by explaining why amend and no_verify are used and how message relates to the commit, adding value beyond schema descriptions.

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 clearly states 'Create a commit with the given message, or amend the last one' — a specific verb and resource. It also distinguishes from siblings by noting it does NOT stage files and is best used after git_add.

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?

Explicitly provides when to use: when staged changes are ready, to amend the last commit (amend=True), or to skip hooks (no_verify=True). It also gives an exclusion ('Does NOT stage files') and directs to git_add/git_status as alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jesspig/git-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server