Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_stash_list

List all stashed changes in a Git repository, optionally specifying the repository path, to review saved work before applying, dropping, or managing stashes.

Instructions

List all stashed changes

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

Input Schema

NameRequiredDescriptionDefault
repoPathNoPath to git repository (defaults to current directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does not state that the operation is read-only and non-mutating, what the output looks like (stash entries such as stash@{0}), or what happens when the stash is empty, leaving the agent to infer all behavior.

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?

It is a short, front-loaded sentence with no filler, though at five words it leans terse for a tool whose behavior is undocumented elsewhere.

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?

The tool has a simple surface: one optional parameter and no output schema. The description covers the core action but omits return shape and read-only/safety context, which matters because no annotations are present to fill that gap.

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?

There is a single parameter with 100% schema description coverage, and the schema already documents that repoPath defaults to the current directory. The description adds no additional meaning about this parameter, so the baseline 3 applies.

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 states a specific verb and resource: 'List all stashed changes'. This clearly distinguishes the tool from git_stash (which creates a stash) and git_stash_pop (which applies and drops one), though it never names those siblings explicitly.

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 explicit guidance on when to use this tool versus git_stash, git_stash_pop, or git_status, and no mention of prerequisites such as whether a stash must exist or whether the repo must be initialized. The intent is only implied by the verb 'List'.

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