Skip to main content
Glama

List or release isolated worktrees

isolated_dirs
Destructive

List or delete isolated Git worktrees (no paths accepted). Succeeded access=read tasks that changed nothing are auto-released and rebuilt on session_id resume; release permanently deletes any retained worktree, including all Git-ignored…

Instructions

List or delete isolated Git worktrees (no paths accepted). Succeeded access=read tasks that changed nothing are auto-released and rebuilt on session_id resume; release permanently deletes any retained worktree, including all Git-ignored files; with uncommitted source files or unmerged commits, or when the worktree belongs to another workspace, it first returns inspection results and a confirmation token without deleting; call again with the token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "isolated_dirs"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNowt-... id to release; omit for list.
cwdNolist only: absolute path in a repo; lists its worktrees from every workspace, own_workspace marks yours. Omit for this workspace only.
actionYeslist worktrees or release one by id.
confirmationNoSnapshot token from confirmation_required; omit on first release or list.
manager_session_idNo

Output Schema

NameRequiredDescriptionDefault
idNo
itemsNo
reasonNo
statusNo
head_oidNo
uncommittedNo
confirmationNo
nested_reposNo
unique_commitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.0

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes well beyond that by specifying exactly what is destroyed (the entire retained worktree, including Git-ignored files), that the effect is permanent, and that a two-step confirmation gate protects uncommitted files, unmerged commits, and cross-workspace worktrees. It also discloses a non-obvious lifecycle behavior — auto-release and rebuild on session_id resume — that no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded correctly, but the body is a single semicolon-chained run-on sentence with a trailing fragment, forcing the reader to unpack four distinct behaviors from one breath. The content is dense and mostly earns its place, yet the structure works against comprehension of a destructive operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return shapes, and it focuses instead on the risky path: what deletion destroys and how the confirmation handshake works. It is complete for an agent to call safely, with the only gap being the unresolved tension between 'no paths accepted' and the 'cwd' parameter.

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 80%, so the schema already carries most parameter meaning and the baseline is 3. The description reinforces the token flow and the session_id resume behavior, but adds no syntax or format detail for 'cwd' or 'id', and its '(no paths accepted)' remark actually conflicts with the schema's documented 'cwd' path parameter.

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 opening clause names a specific verb pair and resource: 'List or delete isolated Git worktrees', with the 'action' enum mapping cleanly onto both. It does not differentiate itself from the sibling 'list' tool, and the parenthetical '(no paths accepted)' sits oddly against a schema whose 'cwd' parameter explicitly takes an absolute path, which slightly muddies the scope statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete operating conditions: omit 'id' to list, omit 'confirmation' on a first release, call again with the token when a confirmation is returned. It also describes an implicit when-not case — worktrees from succeeded read-only tasks are auto-released, so no manual release is needed. It stops short of naming a sibling alternative or stating prerequisites for obtaining a worktree in the first place.

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