Skip to main content
Glama

rebase_finish

Verify a completed rebase against its starting point to ensure no commits were dropped or conflicts resolved incorrectly, and scan for conflict markers to validate the branch's intended change.

Instructions

Check the finished rebase against the tip it started from, and tidy up.

What must stay the same is the change the branch makes to its base -- not the resulting tree, which legitimately changes when the rebase also moves onto newer upstream work. A difference here is a report of damage: a commit dropped from the todo, or a conflict resolved the wrong way. Every rewritten commit is also scanned for conflict markers, since one committed part-way and tidied up later still leaves a commit nobody can build.

The backup tag is kept either way; deleting the only record of where the branch was is not this tool's decision to make.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNo.
allow_changeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
commitsYes
guidanceYes
restoredYes
backup_refYes
branch_changeYes
reordered_onlyNo
commits_with_markersYes
Behavior4/5

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

With no annotations, the description carries full responsibility for disclosing behavior. It explains that the tool compares the branch's change to its base rather than the resulting tree, scans for conflict markers, and explicitly states that the backup tag is kept either way. This is substantive behavioral transparency, though it omits details about the 'allow_change' parameter.

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 description is moderately verbose but front-loaded with the main purpose. Each paragraph adds a distinct point about the tool's behavior (what must stay the same, conflict marker scanning, backup tag retention). It is well-structured, though some phrasing could be tightened.

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?

The description covers the core behavior and logic well, but it lacks operational details such as what 'tidy up' concretely does and what 'allow_change' influences. While an output schema is present, the missing parameter semantics and side-effect information make the description incomplete for a correct and safe 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?

Schema description coverage is 0%, and the description does not mention the 'repo' or 'allow_change' parameters at all. Most critically, it fails to explain what allowing change does, which is essential for correct invocation. The description adds no parameter-level meaning, leaving the agent to guess.

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 clearly states the tool's specific function: 'Check the finished rebase against the tip it started from, and tidy up.' This distinguishes it from sibling tools like rebase_start, rebase_continue, or rebase_status, which have different roles in the rebase workflow.

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 implies clear usage context—'Check the finished rebase'—indicating it is used after a rebase has completed. It provides guidance on what to compare (the change to the base) but does not explicitly name alternative tools or exclusions, which keeps it from a 5.

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