Skip to main content
Glama

Git Stash

git_stash
Destructive

Save, list, apply, pop, or drop Git stashes to manage temporary work-in-progress changes in a local repository.

Instructions

Stash, list, apply, pop, or drop stashes.

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

Input Schema

NameRequiredDescriptionDefault
indexNo
actionNolist
messageNo
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.
response_formatNoOutput format for the response.markdown
include_untrackedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so safety is nominally covered, but the description adds nothing on which of the five actions actually destroy state. Without stating that pop/drop mutate or delete stash entries, the agent must infer destructive behavior from the enum alone. No mention of untracked-file handling, conflicts on apply, or permissions.

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?

A single front-loaded sentence with zero filler; every word maps to an actual operation. Its terseness is a shortcoming in coverage, not verbosity, so it scores well here on structure alone.

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 destructive, six-parameter tool with no output schema and only one-third schema description coverage, the definition is far too thin. An agent would not know the stash entry selector semantics, what apply does on conflict, or what the markdown vs json responses contain.

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

Parameters2/5

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

Schema coverage is only 33% across 6 parameters, so the description carries real burden and fails to meet it. The five listed verbs loosely map to the 'action' enum, but index, message, include_untracked, repo_path, and response_format get no explanation in the description, and the interaction between index and apply/pop/drop is left unstated.

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 resource (stashes) and enumerates the concrete operations: stash, list, apply, pop, drop. An agent can tell this is the stash-management tool rather than a branch/tag/commit tool. It lacks any explicit sibling differentiation, but the verb+resource pairing is unambiguous.

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 guidance on when to use this tool versus the many other git_* siblings, nor on when to choose one action over another. It never explains that pop removes the stash while apply keeps it, or that drop is irreversible — the distinctions that matter most for choosing an action.

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