Skip to main content
Glama
yinghuohuichao

mcp-server-git

git_add

Idempotent

Add selected files to Git's staging area to prepare them for committing. Specify repository path and files to stage changes.

Instructions

Adds file contents to the staging area

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYes
repo_pathYes
Install Server

TDQS

B3.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety and mutation profile is known. The description does not add behavioral context beyond restating the core operation; it does not mention reversible staging semantics, overwriting previously staged content, or any interesting side effects.

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?

The description is a single short sentence that front-loads the core verb and object. There is no filler, redundant wording, or unnecessary detail.

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?

For a simple two-parameter, idempotent git tool, the description is minimally viable. However, it lacks usage guidance, does not clarify repo_path semantics, and offers no information about edge cases such as empty file lists or non-existent files. With no output schema, the agent has to infer the expected call behavior.

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%, so the description must compensate for both parameters. It faintly suggests that 'files' refers to content being staged, but it says nothing about repo_path or how file paths should be specified (absolute, relative, globs, etc.). This leaves significant parameter ambiguity.

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 states a specific verb ('Adds') and resource ('file contents to the staging area'), making the tool's purpose unmistakable. It is clearly distinct from siblings like git_status, git_diff, git_commit, and git_reset.

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

Usage Guidelines3/5

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

The description implies when to use the tool (when you want to stage file contents), but it provides no explicit guidance about when not to use it or which sibling tool might be a better alternative. There is no mention of prerequisites such as an initialized repository or that files must already exist.

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

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/yinghuohuichao/mcp-server-git'

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