Skip to main content
Glama

emacs_git_stash_pop

Restore stashed Git changes directly from Emacs. Pop the stash at a specified index, defaulting to the newest, to recover saved work and remove it from the stash list.

Instructions

Pop the latest stash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNoStash index to pop (default: 0)
Install Server

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Pop' is a mutating operation that applies changes to the working tree and deletes the stash entry, and it can fail with merge conflicts — none of these side effects or failure modes are disclosed. The description conveys only the operation name, not its consequences or reversibility.

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?

Four words with zero filler, and the action ('Pop') is front-loaded ahead of the resource. For a single-parameter tool with complete schema coverage, this is an appropriately sized and well-structured description.

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 tool with one optional parameter, the name, schema, and description together are nearly sufficient to invoke it correctly. However, with no output schema and no annotations, the missing side-effect disclosure and the lack of guidance on when popping is appropriate leave real gaps for a mutating operation.

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 coverage is 100%; the schema already fully documents the single parameter ('Stash index to pop (default: 0)'). The description's phrase 'the latest stash' redundantly restates the default index of 0 and adds no new parameter semantics, so the baseline score of 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 ('Pop') and a specific resource ('the latest stash'), and the verb clearly distinguishes it from sibling stash tools (emacs_git_stash_list, emacs_git_stash_push) and the broader git family. However, it relies on the reader knowing git semantics — it never explains that popping applies the stashed changes and removes the entry from the stash list.

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?

No guidance is given on when to use this tool versus alternatives. Siblings emacs_git_stash_list and emacs_git_stash_push exist, but the description provides no condition for choosing pop, no prerequisite (a stash must exist before popping), and no note on how the index parameter relates to the available stash list.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mandoo180/emacs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server