Skip to main content
Glama

rebase_amend

Amend the commit a rebase just applied, but only when safe. Optionally stage tracked changes so untracked files are not committed.

Instructions

Amend the commit this rebase has just applied.

Refused at every other kind of stop. At a conflicted stop the commit being replayed has not been created yet, so HEAD is still the one before it and amending would fold two commits into one -- silently, and reported by git as success.

stage_tracked stages modifications to files git already tracks. It will not add untracked files: those are never part of what a rebase is rewriting, and sweeping them in is how a stray binary or somebody's local notes end up in history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNo.
messageNo
stage_trackedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterYes
beforeYes
guidanceYes
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses the refusal condition, the dangerous silent-folding scenario at conflicted stops, and the stage_tracked semantics (tracked-only, no untracked files). This goes well beyond the input schema and is highly informative.

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 well-structured: main action first, then a critical refusal context, then a parameter explanation. Every sentence adds value and there is no redundant or vague wording.

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

Completeness4/5

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

The description covers the core behavior, refusal reasons, and the most nuanced parameter. It lacks explicit setup for repo/message, but these are relatively self-evident from names and defaults. An output schema exists, so return values are not needed in the description.

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 description coverage is 0%, so the description must compensate. It thoroughly explains stage_tracked, but repo and message are not discussed. The names and defaults offer some hints, but explicit explanation of what 'message' does (e.g., new commit message) and what 'repo' refers to would be needed for full compensation.

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 opens with 'Amend the commit this rebase has just applied,' a specific verb+resource that clearly distinguishes this from sibling tools like rebase_skip, rebase_abort, or rebase_status. It also clarifies the exact scope of operation.

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

Usage Guidelines4/5

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

The description gives strong when-not guidance: 'Refused at every other kind of stop' and explains the conflicted-stop caveat. However, it does not explicitly name alternative tools (e.g., 'use rebase_continue after resolving'), leaving the agent to infer alternatives from sibling names.

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/aaron-riact/git-rebase-mcp'

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