Skip to main content
Glama

Orca Get Task Status

orca_get_task_status
Read-only

Poll a delegated task to retrieve normalized status, phase, child and sub-run progress, and blocked reasons without modifying task state.

Instructions

委譲したタスクの現在状態を正規化して返す(非同期 poll)。内部で task-list / dispatch-show / worker-list / gate-list / run-list / check(呼び出し Run の受信箱の pending ask を peek)/ inbox(ask の asker の dispatch 受信箱。回答の配達確認)を読むだけで、何も変更しない — このターミナルが Run の担当でなければ run-use で担当を奪わず、ask を読まずに warnings に理由を残す。state は queued / running / blocked / completed / failed / cancelled、phase は queued / starting / implementation / decision_gate / settling / finished。commander は Commander 自身の worker、children は Commander が task-create で分解した直接の子タスク(direct children、parent_id が対象タスクと一致するもの)とその worker(state 付き)なので、1 回の poll で配下の進捗が見える。孫以降(deep DAG)は children に現れない(子タスク自身の poll で見る)。gates が pending のときは orca_resolve_gate で承認/却下できる。gates は対象タスクと直接の子タスクのもの(taskId と runId 付き)。gates[].runId はそのゲートの所属 Run で、sub-run 内のゲートは呼び出し元 Run と違う Run ID になる(実測: 呼び出し元 Run の gate-list は 0 件、sub-run に pending が 1 件) — orca_resolve_gate にはこの runId をそのまま run として渡す。blockedReasons[] に止まっている理由(kind: gate / ask / ask_undelivered / task_report / agent_auth / agent_prompt / turn_unobserved / unknown)が入るので、blocked のときはまずそれを読む(gate 由来の detail には gateId / runId がある)。turn_unobserved は「worker が指示文を受け付けたのに作業を始めていない」(放置しても進まない)— detail.suspectedCause が submit_missing なら、人間に Orca で detail.terminalHandle の pane を開いて Enter を 1 回押してもらう(Codex が指示文を送信せず入力欄に保持する実測。承認プロンプトやエラーが出ていたら押さない。MCP からは送れない)。agent_auth は認証切れの推定(detail.matchedPattern)で、ログインを直してもらう。ask_undelivered(undeliveredAsks[])は「ask は回答済みだが asker が回答を読んでいない」— Orca は子 Run の coordinator を兼ねる Commander に回答を配達しない(1.4.250〜1.4.253 実測)ので、orca_reply_message をもう一度呼ばず、asker の pane で人間に detail.recoveryCommand(ask --resume)を実行させる。回答済みで asker が受け取った ask は asks[] から外す。agent_prompt(人間にしか答えられないエージェントの承認待ち)は worker-show の observation.agentWait(Orca の判定。根拠は detail.agentWait の source: hook / prompt-text / title)を優先し、Orca が見ていない worker だけ出力末尾の文言から推定する — MCP からは解除できないので pane で人間が答える。ゲート無しの blocked は phase: blocked になる。生の status は rawStatus に残す。launch token 無しで失敗した dispatch(dsh 型)で worker terminal が生存中の場合は workerReportPending: true と workerReportNote を添える — その failed は一時的で、worker の task-update 報告により completed が後から届く(実測)。state は偽装しない。sub-run: Commander が run-create で子 Run を作ると、その中のタスクは呼び出し元 Run の task-list に 1 件も出ない(実測で childCount: 0 + sub-run 内に子 6 件)。既定 includeSubRuns: true は run-list を cursor でページングして読み(実測で 60 件 + nextCursor)、coordinatorHandle 照合し、その配下を children に sourceRunId 付きで合算する(拾った Run は subRuns / subRunsDiscovered に載せる)。子が見えないのに childCount: 0 のときはまず subRuns を確認すること。subRuns 行は所有判定も持つ: ownership = verified(coordinator_handle + pane key + process incarnation まで一致)/ probable(handle 一致のみ)/ unverified / conflicting、cancelEligible は verified のみ true、verificationReasons に根拠、discoverySource(explicit / provenance / handle)。スキャンの正直さも応答に出す: subRunScanComplete(打ち切ったら false)/ subRunsTruncated(MAX_SUB_RUNS 超)/ subRunScanPageCount / subRunScanRunCount / subRunOwnershipComplete / subRunWorkerScanComplete(sub-run 側の worker-list を読み切ったか。打ち切ったら cancel は完全停止を保証しない)。

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": {
      "taskId": "<taskId>"
    },
    "name": "orca_get_task_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNo対象の orchestration Run ID(指定していれば検索が速く確実になる)
taskIdYesorca_delegate_task が返したタスク ID
includeSubRunsNotrue(既定)は、Commander が自作した sub-run の配下も children / gates に集約する(sub-run 照合に run-list を 1 回読む)。false なら呼び出し元 Run だけ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, so the bar is lower, yet the description adds substantial behavior: it enumerates the seven internal sources it reads, guarantees no mutation and no ownership theft, and discloses scan honesty limits (subRunsTruncated, subRunScanComplete, subRunWorkerScanComplete) that affect whether a later cancel can guarantee a full stop. It even warns that state is never faked and that some failures are transient (workerReportPending).

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

Conciseness2/5

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

The content is delivered as one enormous paragraph with no headings or lists, so the agent must parse dense prose to reach the recovery procedures. Several passages, including version-specific anecdotes (1.4.250–1.4.253) and empirical counts, add bulk that is not needed to invoke the tool correctly, and the key routing rules are buried mid-paragraph rather than front-loaded.

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?

With no output schema and a complex aggregation tool, the description carries the full burden and does so: it defines every state and phase value, the children/gates semantics, all blockedReasons kinds with remedies, and sub-run ownership fields. Nothing an agent needs in order to interpret and act on a poll result is missing.

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 cost and semantics beyond the schema: includeSubRuns=true performs a cursor-paged run-list read and merges sub-run children with sourceRunId, and supplying run makes the lookup faster and more reliable. That is real added meaning about parameter consequences rather than restatement.

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 opening sentence names a specific verb and resource: it returns the normalized current state of a delegated task via async polling. It also immediately scopes what the tool will not do (read-only, will not steal Run ownership), which lets an agent distinguish a status poll from result/mutation siblings such as orca_get_task_result or orca_cancel_task.

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

Usage Guidelines5/5

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

The definition explicitly routes behavior: when gates are pending, call orca_resolve_gate with gates[].runId; when an ask is undelivered, do not re-call orca_reply_message but have a human run detail.recoveryCommand; when childCount is 0 but children seem missing, check subRuns first. It also states the non-owner case (do not take over with run-use, leave a warning instead), which is an explicit when-not condition.

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