Skip to main content
Glama

Orca Reply Message

orca_reply_message

Replies to a pending ask in Orca orchestration with an answer, unblocking a waiting asker and optionally checking the ask's task scope.

Instructions

pending の ask(質問メッセージ)に回答して asker のブロックを解く(Human-in-the-loop)。asker は orchestration ask --to run:<親Run> --wait(タイムアウト後は ask --resume)でブロックして回答を待つので、reply すると ask が answer 付きで解ける。ターンを終えて Orca の wake を待っている asker には届かないことがある(Orca 1.4.250〜1.4.253 は Run の coordinator を兼ねる terminal に回答を配達しない)ので、reply の後に asker の terminal が Run を coordinate しているかを dispatch-show / run-list で読み取り確認し、該当すれば delivery.wakeLikelyBlocked: true・warnings・nextAction(asker の pane で ask --resume を実行させる)を返す(確認できなければ wakeLikelyBlocked: null。reply の結果は変えない)。内部で check(--all)から対象メッセージを読み点検したうえで、orca orchestration reply --id --body --json を 1 回呼ぶだけ。body には ask の --options で出した選択肢の値(例: approve / reject)を書く。run は ask の宛先 Run(--to run: の親 Run。orca_delegate_task が返した runId)で必須(reply は Run バインドスコープ。consumer_fenced 時だけ run-use で切り替えて 1 回再試行)。messageId が指定 Run の受信箱に無ければ何も変更せず ask_not_found で拒否、taskId を渡して asker の payload.taskId がその task と部分木に属さなければ何も変更せず ask_task_mismatch で拒否する(sub-run の worker からの ask は呼び出し元 Run の task-list に現れないので、その場合は taskId を外す)。点検は任意の誤操作防止で、厳密な Job 単位の認可ではない。

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": {
      "messageId": "<messageId>",
      "body": "<body>",
      "run": "<run>"
    },
    "name": "orca_reply_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYesask の宛先 Run の ID(--to run:<id> の親 Run。orca_delegate_task が返した runId)。reply は Run バインドスコープなので必須(consumer_fenced 時だけ run-use で切り替えて 1 回再試行)
bodyYes回答の本文(ask の --options で出した選択肢の値を書く。例: approve / reject)
taskIdNo任意: この回答が自分の job の ask かを点検させる task ID(通常は orca_delegate_task の taskId)。ask の payload.taskId がこの task またはその部分木に属さない場合は ask_task_mismatch で拒否する(何も変更しない)。sub-run の worker からの ask は呼び出し元 Run の task-list に現れないので、その場合は taskId を外して解決する。指定なしは点検しない。これは誤操作防止の任意チェックで、厳密な Job 単位の認可ではない
messageIdYes返信先の ask のメッセージ ID(orca_get_task_status の asks[].messageId / blockedReasons[].detail.messageId)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool resolves an ask, performs an internal check before calling reply once, and can return wakeLikelyBlocked diagnostics due to an Orca version-specific delivery issue. It also specifies no-change rejection paths such as ask_not_found and ask_task_mismatch.

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 description is a dense single paragraph that mixes core behavior, edge cases, version-specific caveats, and schema-repeated parameter details. It would be more scannable if structured into shorter behavioral and parameter sections.

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

Completeness4/5

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

For a mutating, human-in-the-loop reply tool with no output schema, the description covers effects, error rejections, run/taskId interactions, and wake-delivery diagnostics well. It stops short of describing the normal success response shape fully, which keeps it from a 5.

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 100%, and the schema already documents run, body, taskId, and messageId in detail. The description adds some error semantics, especially messageId not in the Run inbox, but largely repeats schema-level parameter guidance.

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 states a specific verb and resource: reply to a pending ask and unblock the asker. It is clearly a Human-in-the-loop response operation, but it does not explicitly contrast itself with sibling messaging tools such as orca_send_message.

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 explains when to use the tool: replying to pending ask messages, including run binding, optional taskId guarding, sub-run exceptions, and no-change rejection cases. It does not name alternative tools or explicitly say when to use a general send-message tool instead.

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