Skip to main content
Glama

worktree_gc

Destructive

Reclaim rebuildable build-cache entries (project-wise or --all). Default is a dry-run report. Mutations require confirm=true; deletions are quarantine-only (reversible via undo).

Instructions

Reclaim rebuildable build-cache entries (project-wise or --all). Default is a dry-run report. Mutations require confirm=true; deletions are quarantine-only (reversible via undo). Filters: tool, older_than, newer_than, min_size, max_size, tier, include, exclude, keep_latest, project, all, undo, purge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoScan all repos, not just this one
jsonNoReturn JSON instead of text
tierNoCandidate tier (default both)
toolNoRestrict to these tools (e.g. pnpm, cargo)
undoNoRestore a quarantine journal id, reversing an apply
purgeNoPermanently delete quarantined entries older than 14d (requires confirm=true)
confirmNotrue applies/quarantines/purges; false or omitted is a dry-run report
excludeNoGlob patterns to exclude
includeNoGlob patterns to include
projectNoVault project slug to scope to
max_sizeNoOnly entries at most this size (e.g. 2G)
min_sizeNoOnly entries at least this size (e.g. 1M)
worktreeNoWorktree path to scope to (default: cwd)
newer_thanNoOnly entries newer than this (e.g. 7d)
older_thanNoOnly entries older than this (e.g. 30d, 12h, 2w)
keep_latestNoAlways keep the N newest entries per tool
workspace_pathNoAbsolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

Score is being calculated.