Skip to main content
Glama

hop_end

End a git worktree safely, removing it only if clean or with force. Use when finished with a ticket.

Instructions

End a hop (remove git worktree). Safely removes the worktree directory. Refuses if there are uncommitted changes unless force=true. Use when done with a ticket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNoCombined with ticket to identify specific worktree.
forceNoForce removal even if worktree has uncommitted changes.
pruneNoAlso prune the worktree reference from git.
branchNoBranch name to find and remove the worktree for.
dryRunNoIf true, return what would be removed without actually removing it. Shows dirty status and branch info.
ticketNoTicket ID to find and remove the worktree for.
repoPathNoAny path inside the git repository.
worktreePathNoDirect path to the worktree to remove.
allowMainWorktreeNoAllow removing the main worktree (dangerous).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key destructive-safety behavior: it removes the worktree directory and refuses when there are uncommitted changes unless force=true. It does not touch on permissions, prune semantics, or the allowMainWorktree danger path, but the core refusal contract is stated.

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?

Three tight sentences, front-loaded with the purpose and then the safety contract and usage cue. No filler or repetition.

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 nine-parameter destructive tool with no annotations and no output schema, the description is adequate but thin: it omits dryRun, prune, and allowMainWorktree behavior and, more importantly, does not explain how the worktree is identified among the multiple alternative selectors.

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 nine parameters are already documented. The description only echoes the force=true behavior already in the schema and adds no identification-logic detail (slug+ticket vs branch vs ticket vs worktreePath). Baseline 3 is appropriate.

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

Purpose5/5

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

States a specific verb+resource ('End a hop') and immediately disambiguates the jargon with the parenthetical '(remove git worktree)'. This distinguishes it from siblings like hop_start and hop_list without opening any schema.

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?

'Use when done with a ticket' gives a usable lifecycle cue, but there is no when-not guidance and no distinction from close siblings such as hop_clean or git_worktree_remove. The agent must infer which cleanup tool applies.

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