Skip to main content
Glama

orca_worktree_create

Create a new worktree in a registered repo and launch a coding agent with a self-contained task prompt. The worktree is tagged to your client so status and wait calls find it after a restart.

Instructions

Create a new worktree in a repo and start a coding agent in it with the task prompt (optional model and effort). The worktree is tagged as this client's, so orca_agent_status and orca_wait find it after a restart. Returns the agent's terminal handle.

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": {
      "repo": "<repo>",
      "name": "<name>",
      "prompt": "<prompt>"
    },
    "name": "orca_worktree_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWorktree/branch name
repoYesAbsolute path of a repo registered in Orca
agentNoclaude
modelNo
effortNo
promptYesThe task for the agent, self-contained
commentNoA note shown on the worktree in Orca; the owner tag is appended to it
baseBranchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden and does disclose meaningful behavior: an owner tag is applied to the worktree, the tag persists across restarts, and the return value is the agent's terminal handle. It omits what happens on name collision, whether a branch is created/checked out in the repo, and what occurs if the agent fails to start after the worktree exists.

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: the core action first, then the persistence/tagging behavior, then the return value. No filler, and the most decision-relevant information is front-loaded.

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?

It compensates for the missing output schema by stating the return value, which is a real win. But for a tool with 8 parameters, no annotations, and a mutation that spawns both a filesystem object and a live agent process, the absence of baseBranch semantics, error/partial-failure behavior, and permissions is a meaningful gap.

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 50%, and the prose adds meaning only for prompt (self-contained task), model and effort (optional), and indirectly for comment (owner tag appended). Two parameters, agent (defaults to claude per schema) and baseBranch, are documented in neither the schema nor the description, leaving real gaps for an 8-parameter tool.

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 compound action: create a worktree in a repo and start a coding agent in it with the task prompt. It is clearly distinguishable from siblings like orca_worktree_rm (removal) and orca_worker_start (agent-only start), and it names the downstream consumers (orca_agent_status, orca_wait) that make the created worktree discoverable.

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 description explains a consequence of use (tagging so status/wait find the worktree after a restart) but never states when to choose this over alternatives such as orca_worker_start or orca_run_create, nor any preconditions like the repo already being registered via orca_repo_add. Usage is implied rather than guided.

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