Skip to main content
Glama

Git Flow Actions

git_flow
Destructive

Drives the git-flow-next CLI to initialize and configure Git Flow workflows and manage topic, feature, release, and hotfix branches, including finish recovery.

Instructions

Drives the git-flow-next CLI. The CLI owns the workflow semantics — the finish state machine, conflict recovery, and worktree lifecycle — so it must be installed and on PATH; this tool only builds argv. Prefer operation=config/topic/control with subactions; the legacy action aliases remain for compatibility.

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

Input Schema

NameRequiredDescriptionDefault
ffNoUse fast-forward behavior when the selected strategy allows it.
tagNoCreate an annotated tag when finishing a release or hotfix (default: true).
nameNoBranch short name, branch type name, or release/hotfix version depending on the action.
fetchNoFetch the remote before finish when a remote is configured.
forceNoForce re-initialization even if git-flow is already configured.
scopeNoGit config scope used for init writes.local
topicNoTopic branch type for generalized actions such as topic-start, topic-list, or topic-publish.
actionNoLegacy-compatible action alias.
parentNoParent/base branch for flow config mutations.
prefixNoBranch prefix for topic type definitions, such as "feature/".
presetNogit-flow-next preset to initialize.classic
remoteNoRemote name for publish operations (default: "origin").
sharedNoWrite a committable .gitflow file (init, or config edit).
publishNoPublish parent/backmerge branches after finish.
recoverNoWhich in-progress operation control_action targets (default: finish).finish
base_refNoExplicit starting ref for topic-start.
new_nameNoNew short name or branch type name for rename operations.
strategyNoIntegration strategy for finish/update operations.
worktreeNoWorktree handling for the branch. finish/delete expose only --keep-worktree and --force-worktree; start and checkout expose --worktree/--no-worktree/--worktree-path. Using the wrong pair raises rather than being silently ignored.
operationNoCanonical git_flow operation.
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.
worktreesNoAppend a worktree column to a list (only valid with topic_action=list).
tag_prefixNoTag prefix for flow config mutations.
auto_updateNoEnable auto-update on base branch definitions.
branch_kindNoWhether a flow config operation targets a base branch or topic branch type.
config_fileNoPath to a git config file when scope is "file".
keep_branchNoKeep the topic branch after finish.
main_branchNoOverride the main branch name (default: gitflow.branch.master config or "main").
start_pointNoConfigured start point for a topic type.
tag_messageNoMessage for the version tag.
force_deleteNoForce deletion for topic-delete and config flags.
topic_actionNoTopic branch lifecycle operation.
config_actionNoconfig_action is required for operation=config.
keep_worktreeNoOn finish/delete, keep the branch worktree detached instead of removing it.
worktree_pathNoCreate the worktree at this path instead of the computed one.
control_actionNoContinue or abort an in-progress flow finish operation.
develop_branchNoOverride the develop branch name (default: gitflow.branch.develop config or "develop").
force_worktreeNoOn finish/delete, remove a git-flow-created worktree even with uncommitted changes.
staging_branchNoNOT SUPPORTED by git-flow-next 2.1.0 init; use preset=gitlab instead.
preserve_mergesNoPreserve merges during rebase-based finish flows.
response_formatNoOutput format for the response.markdown
production_branchNoNOT SUPPORTED by git-flow-next 2.1.0 init; use preset=gitlab instead.
upstream_strategyNoMerge strategy for flow branch integration.
no_create_branchesNoSkip base branch creation during init and only write configuration.
downstream_strategyNoMerge strategy for flow branch integration.
rebase_before_finishNoRebase the topic branch onto its parent before finishing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, so the safety profile is covered. The description adds genuinely new behavior: the finish state machine, conflict recovery, and worktree lifecycle live in the CLI, the CLI must be installed and on PATH, and this tool performs no git work itself — all context an agent needs before invoking a destructive operation. It still omits what a failed or partially-completed finish looks like.

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?

Three sentences, no filler, and the most important fact — this is a thin argv wrapper over an external CLI — is stated first. The middle sentence is a dense parenthetical list, but every element carries information.

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?

For a 46-parameter destructive tool with no output schema, the description covers the prerequisite and delegation model but says nothing about which parameters apply to which operation or subaction, nor what the response contains. The agent can call it, but parameter/operation pairing is left entirely to the schema.

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

Parameters4/5

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

Schema coverage is 100%, so the 46 parameters are self-documented and a baseline of 3 would be defensible. The description earns one more point by explaining the non-obvious relationship between the two overlapping entry points (operation plus subaction versus the legacy action enum), which the schema alone presents as equals.

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?

"Drives the git-flow-next CLI" is a specific verb-plus-resource statement, and the description scopes the tool's role (builds argv, delegates workflow semantics to the CLI). It never names a sibling (git_branches, git_workflow, git_worktree) to contrast against, so the agent must infer the boundary itself.

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

Usage Guidelines3/5

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

"Prefer operation=config/topic/control with subactions; the legacy action aliases remain for compatibility" is useful steer between two overlapping ways to call the same tool, and the PATH prerequisite is stated. But there is no guidance on when to reach for git_flow versus git_branches, git_workflow, or git_worktree, and no when-not-to-use condition.

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