Skip to main content
Glama

agy_worktrees

Destructive

Plan, create, inspect, hand off, or clean up managed Git worktrees to isolate coding tasks, track branches, and safely manage repository workspaces.

Instructions

Plan, create, inspect, hand off or clean up a managed worktree.

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": "agy_worktrees"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNo
nameNo
pathNo
repoNo
actionYes
plan_idNo
task_idNo
project_idNo
request_idNo
keep_branchNo
operation_idNo

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
patchNo
sha256No
plan_idNo
encodingNo
project_idNo
result_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is carried by structured data. The description adds nothing beyond that: it does not say what cleanup removes, what keep_branch governs, whether a worktree must be clean before removal, or whether repeated creates are safe despite non-idempotency. Some of that arguably belongs to params, but the destructive semantics deserve explicit disclosure.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, and the resource is identified up front. It is efficient, though the compactness is partly under-specification rather than disciplined brevity.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. But for an 11-parameter destructive tool with 0% schema coverage, the description leaves the agent guessing about nearly every input and about the per-action prerequisites; it is not complete enough to invoke confidently.

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 description coverage is 0% across 11 parameters, so the description carries the full burden and largely fails it. The only added meaning is that the five action values correspond to plan/create/inspect/handoff/cleanup; repo, base, name, path, plan_id, task_id, project_id, request_id, operation_id and keep_branch are left entirely unexplained.

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 names a concrete resource (a managed worktree) and a specific set of lifecycle verbs (plan, create, inspect, hand off, clean up). It is clear about what the tool operates on, but it does not distinguish this from siblings such as agy_close or agy_start, which could plausibly be confused with the cleanup or create phases.

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?

The five verbs mirror the action enum, so an agent can infer that 'action' selects the lifecycle stage. However, nothing says when to choose plan versus create, what prerequisites each requires, or which situations call for handoff rather than cleanup; the guidance is implied only.

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