Skip to main content
Glama

Git Workspace Tools

git_workspace
Destructive

Manage Git workspace workflows: stash, rebase, cherry-pick, merge, bisect, tag, worktree, and submodule actions, with a stash_all shortcut for saving all changes.

Instructions

Workspace tool for stash/rebase/cherry-pick/merge/bisect/tag/worktree/submodule actions plus stash_all shortcut.

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

Input Schema

NameRequiredDescriptionDefault
refNo
urlNo
nameNo
ontoNo
pathNo
signNoSign the tag. Defaults to the server GIT_AUTO_SIGN_TAGS setting.
indexNo
pathsNo
actionNostash
branchNo
targetNo
bad_refNo
commandNo
messageNo
good_refNo
merge_logNo
recursiveNo
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.
merge_refsNo
tag_actionNo
merge_no_ffNo
rebase_ontoNo
signing_keyNo
command_argsNo
merge_actionNo
merge_squashNo
stash_actionNo
bisect_actionNo
merge_ff_onlyNo
rebase_actionNo
rebase_branchNo
rebase_mergesNo
conflict_styleNo
merge_strategyNo
submodule_jobsNo
worktree_forceNo
merge_no_commitNo
rebase_upstreamNo
response_formatNoOutput format for the response.markdown
submodule_depthNo
worktree_actionNo
worktree_expireNo
cherry_pick_refsNo
submodule_actionNo
submodule_remoteNo
include_untrackedNo
rebase_autosquashNo
worktree_detachedNo
cherry_pick_actionNo
rebase_interactiveNo
cherry_pick_mainlineNo
cherry_pick_strategyNo
worktree_lock_reasonNo
cherry_pick_no_commitNo
merge_strategy_optionsNo
cherry_pick_record_originNo
cherry_pick_strategy_optionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=false, so the agent knows this mutates local state and may destroy work. The description adds nothing on top of that: it does not say which actions are destructive, how merge/rebase/cherry-pick conflicts are surfaced or continued/aborted, or that a repo_path is required in practice. The annotation profile is consistent with the described actions, so there is no contradiction — merely no added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no padding, which is good, but the comma-slash enumeration is an unstructured capability dump rather than front-loaded useful information. The final clause about stash_all is tacked on without explanation and reads as an afterthought rather than a routing rule.

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

Completeness1/5

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

For a destructive, non-idempotent 57-parameter aggregator spanning eight Git subsystems with no output schema, one sentence of capability listing is far short of what an agent needs to pick the right action and parameter combination. It should at minimum explain the action/sub-action dispatch model, note that most parameters apply to only one action, and route to the dedicated sibling tools.

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?

With 57 parameters at only 5% schema description coverage, the description carries essentially the full burden — and it provides none. It names no parameter, no action/sub-action pairing convention (e.g. action=merge plus merge_action), and no indication that dozens of parameters are mutually exclusive per action. The lone "stash_all shortcut" mention does not explain how it relates to action=stash versus the include_untracked flag.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates the eight action domains the tool covers (stash/rebase/cherry-pick/merge/bisect/tag/worktree/submodule), which tells an agent roughly what falls inside it. But it never states what the tool is or does in verb+resource terms — it is an action dispatcher whose behavior is entirely determined by the "action" parameter, and that is not said. Compared with siblings, the enumeration overlaps almost verbatim with existing dedicated tools, with no differentiation.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all, and critically no routing versus the dedicated siblings (git_stash, git_rebase, git_cherry_pick, git_merge, git_bisect, git_tag, git_worktree, git_submodule) that implement the very same domains. The only hint is the dangling phrase "plus stash_all shortcut," which implies stash_all is uniquely available here but does not say so explicitly or tell the agent which tool to prefer.

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