Skip to main content
Glama

orca_worktree_rm

Removes a worktree and deletes its local branch when Orca can prove it is merged. Use it to clean up completed agent worktrees; this action is destructive.

Instructions

Remove a worktree (and its local branch when Orca can prove it is merged). Destructive.

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": {
      "worktree": "<worktree>"
    },
    "name": "orca_worktree_rm"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
worktreeYesAbsolute path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that the operation is destructive and that branch deletion is conditional on proven merge state, which is real added context. It omits what happens to uncommitted changes, whether the call errors on a dirty worktree, and what the force flag overrides.

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?

Two short sentences, front-loaded with the action and followed by the key conditional behavior. No filler or restatement of the title.

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

Completeness2/5

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

For a destructive mutation with zero annotations and no output schema, the definition leaves major gaps: force semantics, failure modes on dirty or in-use worktrees, and whether the branch removal is recoverable. The merge-proof rule is helpful but covers only one edge of the behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: the required 'worktree' parameter is documented in the schema as an absolute path, but 'force' is undocumented in both schema and description. For a destructive tool, the flag that presumably bypasses safety checks is exactly what the description should explain, and it does not.

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 and resource ("Remove a worktree") and adds a distinguishing behavioral nuance — it also deletes the local branch, but only when Orca can prove it is merged. That rule separates it cleanly from the create/list siblings in the catalog.

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 on when to use this versus alternatives, and no preconditions (clean tree, worktree not in active use, whether the branch must be merged). The single word "Destructive" signals caution but does not tell the agent when calling is appropriate.

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