Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_rebase

Reapply commits onto another branch's base tip to integrate changes. Use it to move or edit a series of commits, optionally starting an interactive rebase.

Instructions

Reapply commits on top of another base tip

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": {
      "branch": "<branch>"
    },
    "name": "git_rebase"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchYesThe branch to rebase onto
repoPathNoPath to git repository (defaults to current directory)
interactiveNoStart an interactive rebase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It never states that rebase rewrites history and changes commit hashes, that conflicts may halt the operation mid-way, or — critically — that interactive=true typically opens an editor that can block a non-interactive agent.

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

Conciseness3/5

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

It is a single front-loaded sentence with no wasted words, which is structurally clean. However, the brevity is achieved by omitting rather than by compressing, so the terseness costs more than it saves.

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?

This is a history-rewriting mutation with no annotations and no output schema, yet the description says nothing about conflict handling, resulting state, or the editor hazard of interactive mode. For a tool of this risk level, the definition is materially incomplete.

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

Parameters3/5

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

Schema coverage is 100%, so all three parameters are already documented in the schema, and the baseline is 3. The phrase "another base tip" loosely reinforces the branch parameter but adds no syntax, default behavior, or interactive-mode consequences beyond what the schema already says.

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 gives a specific verb and resource ("Reapply commits on top of another base tip"), which maps unambiguously to git rebase for a git-literate agent. It does not distinguish this from siblings that also move or reapply commits, such as git_merge or git_cherry_pick, so it stays at 4 rather than 5.

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?

There is no when-to-use guidance, no stated preconditions (clean working tree, branch checked out), and no routing to alternatives like git_merge or git_cherry_pick. The agent must already know git conventions to decide when this tool applies.

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