Skip to main content
Glama

Orca Delegate Task

orca_delegate_task
Destructive

Delegate a goal to Orca’s Commander Agent to decompose and assign it across supervised workers asynchronously, returning a running task without waiting for completion.

Instructions

ゴールを Commander Agent に委譲する(非同期 submit / Commander API)。内部で run-create(run 未指定時) → task-create(固定の Commander 指示 + goal + repo + constraints を spec に書き込み) → worker-start --worktree new-child --agent (既定 codex) を行い、commanderModel / commanderEffort を渡せば worker-start --model / --effort に載せる(effort だけの指定は effort_requires_model。実際に使われた値は応答の launch.effective)。Commander の完了を待たずに { taskId, state: "running", commander: true } を返す。新規 worktree には名前が必須なので、title があればそれを、無ければ spec とタスク ID から自動生成した名前を渡す(title は省略できる)。Commander がゴールを分解して supervised worker へ差配するので、利用者が個々のワーカーやターミナルを直接指定することはない(terminal / worktree は受け付けない)。worker-start だけ失敗してもタスクは生き、warnings 付きで返す: 起動前の失敗(agent_unconfigured など)は state: "queued"(放置しても進まない)、エージェントが readiness を通れなかった場合は Orca がタスクを failed にするので state: "failed" + startOutcome: "failed"(タスクを実行していない pane が残る。workerReportPending を poll で確認し、false なら orca_release_task で閉じて起動設定を直し delegate し直す)。repo は repo セレクタで渡すこと — id: / path: は解決できるが、worktree の displayName や worktree path は repo_not_found になる(現在の worktree の repoId は orca worktree current --json の result.worktree.repoId)。

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": {
      "spec": "<spec>"
    },
    "name": "orca_delegate_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNo対象の orchestration Run ID(省略時は新規 Run を作成する)
depsNo依存するタスク ID の配列
repoNo対象リポジトリのセレクタ(id:<id> / name:<name> / path:<path>)
specYesCommander に渡すゴール(タスク仕様)。これ 1 本で委譲できる
titleNoタスクの表示タイトル(task-title と Commander worker の worktree 名に使う)。省略時は spec とタスク ID から worktree 名を作る
parentNo親タスク ID
constraintsNoCommander に課する制約。Commander 指示の Constraints 欄に箇条書きで入る(例: 既存 API を変えない / テストを追加する / マージしない)
commanderAgentNo起動する Commander Agent の id(既定 codex)。実際の作業ワーカーを選ぶのは Commander 側codex
commanderModelNoCommander の provider model id(worker-start --model)。Orca が対応するのは claude / codex / cursor / antigravity / muse で、他のエージェントは自分の設定の model で起動する。省略時はエージェントの既定
commanderEffortNoCommander の推論レベル(worker-start --effort)。commanderModel と一緒に指定する(単独指定は effort_requires_model で拒否)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true), the description discloses that the call is asynchronous and returns immediately with { taskId, state: "running", commander: true } without waiting for completion. It also enumerates partial-failure semantics: agent_unconfigured yields state "queued" that will not progress, readiness failure yields state "failed" + startOutcome "failed" with a leftover pane, and worker-start failures return with warnings while the task survives.

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, but the body is a single dense paragraph with deeply nested parentheses and multiple inline failure branches, which makes it hard to scan. Nearly every clause carries operational value, yet restructuring into discrete lines for return shape, failure modes, and repo-selector rules would improve it without losing content.

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

Completeness5/5

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

For a destructive 10-parameter mutation tool with no output schema, the description covers the async return contract, the worktree-naming requirement, the Commander/worker delegation boundary, and the recovery path after a failed start. An agent has everything needed to invoke it and interpret its response correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: run omitted creates a new run, repo must be id:/path: selectors because worktree displayName or worktree path produces repo_not_found, commanderModel/commanderEffort map to worker-start --model/--effort with commanderEffort alone rejected as effort_requires_model, and title seeds the worktree name. It says nothing extra about deps, parent, or constraints beyond the schema.

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?

The description opens with a specific verb+resource: delegating a goal to a Commander Agent via async submit. It also distinguishes itself from siblings by stating that terminal/worktree are not accepted and that individual workers are not specified by the caller, so an agent can tell this apart from send_message or the status/result tools.

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?

It gives clear usage context (use repo selectors, omit run to create a new one) and explicit alternatives in the failure paths: poll workerReportPending and, when false, reopen the flow via orca_release_task. What is missing is a positive statement of when to prefer this over sibling entry points such as orca_send_message or a direct worker start.

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