Skip to main content
Glama

Orca Get Task Result

orca_get_task_result
Read-only

Retrieves a task's asynchronous results and worker output, optionally aggregating direct child tasks and Commander sub-run results for complete progress checks without modifying data.

Instructions

タスクの成果とワーカー出力を読む(非同期 result)。内部で task-list / dispatch-show / worker-read / run-list を読むだけで、何も変更しない。worker 出力は 1 件あたり既定 40 行・最大 4000 文字に切り詰める。既定では Commander 自身の成果と出力だけを返し、includeChildren: true で直接の子タスク(direct children)の result と出力(子 10 件・worker-read 8 件まで)を集約する。孫以降は集約しない(その子自身の result で見る)。Commander が sub-run を作っていた場合、includeChildren: true(既定 includeSubRuns: true)はその sub-run の子タスクも sourceRunId 付きで集約する — 呼び出し元 Run だけの result は sub-run の成果を丸ごと見落とす(実測)。集約の完全性は poll と同じ応答フィールドで出す: subRunScanComplete / subRunsTruncated / subRunOwnershipComplete / subRunWorkerScanComplete(打ち切りのときは warnings に理由が出る)。

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_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNo対象の orchestration Run ID
taskIdYes対象のタスク ID
outputLimitNoworker 1 件あたりで読む出力行数の上限(既定 40)
includeSubRunsNotrue(既定)は includeChildren の対象に Commander 自作の sub-run の子タスクも含める(sourceRunId にどの Run 由来かを載せる)
includeChildrenNotrue にすると Commander が分解した子タスクの result と worker 出力も集約して返す(既定 false = Commander だけ)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes far beyond by disclosing truncation policy (40 lines per worker by default, 4000 characters max), aggregation caps (10 children, 8 worker-reads), that grandchildren are never aggregated, and how sub-run children are tagged with sourceRunId. It also names the completeness fields returned (subRunScanComplete, subRunsTruncated, subRunOwnershipComplete, subRunWorkerScanComplete) and that truncation surfaces a reason in warnings — exactly the behavioral context an agent needs before trusting the result.

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?

Purpose and the no-mutation guarantee are front-loaded, and the dense sentences each carry distinct operational facts. It is heavier than ideal, with parenthetical repetition ('既定 includeSubRuns: true', '(direct children)', '(実測)') that could be trimmed without losing information.

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?

There is no output schema, yet the description compensates by naming the completeness fields and the warnings channel, so an agent knows how to judge whether aggregation was exhaustive. For a read-only tool with five well-documented parameters, nothing needed for correct invocation or interpretation 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 already 100%, so the baseline is 3; the description earns above that by adding meaning the schema does not carry — the concrete aggregation limits behind includeChildren, the fact that grandchildren are excluded, and that includeSubRuns tags each aggregated task with its originating Run. It does not elaborate on outputLimit's line-count semantics or the run parameter beyond what the schema states.

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 opening sentence gives a specific verb and resource pair — read a task's result and worker output (async result) — and immediately clarifies that it only reads task-list/dispatch-show/worker-read/run-list and mutates nothing. That cleanly separates it from a status-oriented sibling such as orca_get_task_status, though no sibling is named explicitly to anchor the contrast.

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 spells out the default scope (Commander's own result only) and the exact condition that changes it: set includeChildren: true when the Commander decomposed work into child tasks, and includeSubRuns covers Commander-authored sub-runs. It even warns that a caller-run-only result would miss sub-run output entirely. It lacks an explicit statement of when to prefer a different sibling tool over this one.

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