Skip to main content
Glama

Git Rebase

git_rebase
Destructive

Start, continue, abort, or skip Git rebase operations to integrate branch changes, resolve conflicts, and maintain a linear commit history.

Instructions

Rebase: start, continue, abort, or skip.

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

Input Schema

NameRequiredDescriptionDefault
ontoNo
actionNostart
branchNo
mergesNo
upstreamNo
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.
autosquashNo
interactiveNo
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.4/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 non-idempotent, so the safety profile is carried by structured data. The description adds nothing beyond that: it does not mention history rewriting, that in-flight rebase state must exist before continue/abort/skip, or any recovery implications, which is a significant omission for a destructive operation.

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

Conciseness4/5

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

The single sentence is front-loaded and free of filler. Its brevity is a virtue structurally, though here it reflects under-specification rather than efficient communication.

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?

For a destructive, 9-parameter tool with no output schema and sparse schema descriptions, the definition is far too thin. An agent has no way to know that interactive/autosquash relate to start mode, or that continue/abort/skip require an existing rebase in progress.

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 only 22% across 9 parameters, so the description must compensate, and it does not. The action values it lists merely restate the enum already in the schema, while onto, upstream, branch, interactive, autosquash, merges, and repo_path receive no explanation of meaning or interaction.

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

Purpose3/5

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

The description names the operation (rebase) and enumerates the four action modes, so the basic verb+resource is identifiable. However, it never states what a rebase does to history or how it differs from close siblings such as git_merge, git_cherry_pick, and git_rewrite, leaving an agent to rely on prior knowledge of Git.

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?

No when-to-use or when-not-to-use guidance is provided, and no alternative sibling is named. The action list implies a conflict-resolution lifecycle (continue/abort/skip) but the description does not say that these only apply mid-rebase, nor when a plain merge would be preferable.

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