Skip to main content
Glama

Git Workflow Orchestrator

git_workflow
Destructive

Run and manage named multi-step Git workflows with resumable start, status, continue, abort, and list controls for snapshot, replay, branch surgery, and publish tasks.

Instructions

Run named multi-step Git workflows with resumable lifecycle controls. Use action=start|status|continue|abort|list with workflow families such as snapshot, replay, branch_surgery, and publish.

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

Input Schema

NameRequiredDescriptionDefault
modeNoReplay mode for replay workflow.cherry-pick
actionNoLifecycle action for git_workflow execution and state management.start
remoteNoRemote name for publish-related steps (default: origin).
publishNoDeprecated alias for auto_publish; retained for backward compatibility.
reset_toNoOptional hard-reset target in replay/branch_surgery workflows.
workflowNoNamed workflow family for multi-step Git orchestration.
log_countNoCommit count for snapshot log output.
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.
three_wayNoUse --3way when applying patch series via git am.
base_branchNoBase branch for snapshot merge-base checks (default: main).
fetch_firstNoFetch before publish workflow steps.
patch_filesNoPatch/mailbox file list for replay mode=am.
rebase_ontoNoOptional rebase target before publish push step.
auto_publishNoAutomatically publish after replay/branch_surgery sequence.
set_upstreamNoUse --set-upstream for publish push steps.
backup_branchNoBackup branch name for branch_surgery workflow.
target_branchNoTarget branch for replay/branch_surgery/publish workflows.
source_commitsNoCommit list for replay and branch_surgery flows.
response_formatNoOutput format for the response.markdown
force_with_leaseNoUse --force-with-lease for publish push steps.
confirm_hard_resetNoRequired true when reset_to is provided because hard reset is destructive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructive=true, readOnly=false, openWorld=true, and non-idempotent, so the description does not need to restate the safety profile. It adds useful lifecycle context such as 'resumable' and the continue/abort/status actions, but it omits concrete side effects such as what abort leaves behind, how hard reset is guarded, or what backup_branch does.

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?

Two sentences, front-loaded with purpose and then the action/workflow invocation pattern. There is no redundant or filler text.

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 21-parameter destructive orchestrator with no output schema, the description is thin: it does not explain what status/continue/abort return or how the workflow families differ. The schema and annotations cover parameters and safety, but the description leaves important lifecycle behavior unspecified.

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 100%, so all 21 parameters are documented in the schema and the baseline is 3. The description reinforces the action enum and workflow families, but it adds no syntax, constraints, or meaning beyond what the schema already provides for the other parameters.

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?

The description names a specific verb and resource: 'Run named multi-step Git workflows' with resumable lifecycle controls, and it identifies the action and workflow-family vocabulary. It does not explicitly distinguish this orchestrator from siblings like git_flow, git_rebase, or git_cherry_pick, which keeps it from a 5.

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?

It tells the agent to use action=start|status|continue|abort|list with workflow families such as snapshot, replay, branch_surgery, and publish, giving clear invocation context. However, it does not say when to choose git_workflow over sibling tools or when not to use it, so selection guidance remains implied rather than explicit.

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