Skip to main content
Glama

Git Merge

git_merge
Destructive

Start, continue, or abort Git merges in local repositories, with conflict handling and merge option controls.

Instructions

Merge: start, continue, or abort.

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

Input Schema

NameRequiredDescriptionDefault
logNo
refsNo
no_ffNo
actionNostart
squashNo
ff_onlyNo
strategyNo
no_commitNo
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.
conflict_styleNo
response_formatNoOutput format for the response.markdown
strategy_optionsNo

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 on that base: no mention of conflict behavior, what state abort discards, that continue requires resolved conflicts, or the effect of squash/no_commit on the resulting commit — all material for a destructive, non-idempotent operation.

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?

It is short and front-loaded, but this is under-specification rather than conciseness. The single fragment omits information an agent needs before invoking a destructive multi-parameter command.

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 Git merge with 12 parameters, no output schema, and low schema coverage demands a substantive description. This one supplies no conflict handling, mode-transition, or parameter guidance, so it is not usable for correct invocation.

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 12 parameters and only 17% schema description coverage, the description is expected to compensate, yet it explains none of them. Flags like no_ff, ff_only, squash, no_commit, strategy, strategy_options and conflict_style carry real semantic weight and are left undocumented in both places.

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?

"Merge: start, continue, or abort" largely restates the tool name and the `action` enum already declared in the input schema. It identifies the resource (a Git merge) but adds no distinguishing scope versus siblings such as git_rebase or git_cherry_pick, so an agent gains almost nothing beyond the name.

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 three modes are named but there is no guidance on when to choose start versus continue versus abort, nor any prerequisite context (e.g. being mid-merge, clean worktree). No alternatives are mentioned despite many merge-adjacent siblings, leaving usage entirely inferred.

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