Skip to main content
Glama

rebase_todo

Read or replace remaining git rebase steps mid-run, so you can reorder or drop commits safely without losing planned work.

Instructions

Read the steps a running rebase has left, or replace them.

Worth having because the need shows up mid-run: a fixup turns out to depend on a commit scheduled after it, and the fix is to move one line rather than to abandon thirty resolved conflicts and start again.

Replacing the list can drop commits exactly as writing one badly can, so the same check applies: a commit in the remaining steps and not in the replacement is refused unless force. Lines that name no commit -- exec above all -- are counted too, and dropping every exec silently turns off the per-commit check, so that is called out rather than assumed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNo.
todoNo
forceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
droppedYes
guidanceYes
remainingYes
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It explicitly explains the safety check: replacements that drop commits are refused unless force, exec lines are counted, and dropping all execs silently disables the check—which is called out. This goes well beyond basic expectations.

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 longer than a simple one-line statement, but each paragraph earns its place: the lead sentence defines the tool, the second gives motivational context, and the third is a critical safety explanation. The structure is logical and front-loaded with the core purpose.

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

Completeness5/5

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

Given the tool's moderate complexity (read/replace with nuanced safety rules), the description covers the important behavior and usage context. An output schema exists, so return values are not needed in the description. The dual read/write behavior is implicitly tied to the 'todo' parameter default of null, which is inferable from the schema.

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?

The description explains the role of 'todo' (replacement list) and 'force' (allows dropping commits) but does not mention the 'repo' parameter. With 0% schema description coverage, this partial explanation compensates only somewhat. The format of the todo array entries is also left vague, though examples like 'exec' hint at it.

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 'Read the steps a running rebase has left, or replace them,' which clearly states the tool's dual function on the rebase todo list. This is a specific verb+resource combination and distinguishes it from siblings like rebase_status (which reports status) and rebase_amend (which edits commits).

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 'Worth having because' paragraph gives a concrete scenario ('a fixup turns out to depend on a commit scheduled after it') and explains the value of editing the todo list instead of aborting and restarting. It also implicitly advises when to use force. However, it does not explicitly name alternative tools or state when not to use this tool.

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