Skip to main content
Glama

Orca Send Message

orca_send_message

Send supplemental instructions, questions, escalations, or completion reports to delegated worker agents in an Orca run, targeting a run, dispatch, named agent, or all workers.

Instructions

委譲したジョブのエージェントへメッセージを送る(指示の補足・質問・エスカレーション・完了報告)。内部で orca orchestration send --json を 1 回呼ぶだけ。宛先は run: / dispatch: / @all / @codex / @worktree:、省略時は Run の受信箱。MCP 側は Run バインドを持たないので run(orca_delegate_task が返した runId)を渡すこと。type=worker_done には outcome(succeeded/failed)と dispatchId(orca_get_task_status の workers[].dispatchId)が必要で、欠けていれば CLI に叩き合う前に outcome_required / dispatch_id_required で返す。worker_done 以外に outcome を付けると outcome_not_allowed。

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": {
      "subject": "<subject>"
    },
    "name": "orca_send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo宛先: run:<id> / dispatch:<id> / @all / @codex / @worktree:<id> / 旧来ハンドル。省略時は Run の受信箱
runNo対象の orchestration Run ID(orca_delegate_task が返した runId。MCP 側はバインドを持たないので実質必須)
bodyNo本文
typeNoメッセージ種別(worker_done は outcome 必須)
taskIdNo関連付けるタスク ID
outcomeNotype=worker_done 時の完了報告の結末
subjectYes件名(必須)。ワーカーへの指示・質問・エスカレーションを短く書く
priorityNo優先度(例: low / normal / high)
threadIdNoスレッド ID(往復の紐付け)
dispatchIdNo関連付ける dispatch ID(試行単位の指示)

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?

Annotations only cover the safety profile, and the description goes well beyond that: it discloses the single internal `orca orchestration send --json` call and pre-flight validation behavior with specific error codes (outcome_required, dispatch_id_required, outcome_not_allowed) before the CLI is invoked. This is exactly the extra context an agent needs to avoid failed calls.

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?

Front-loads the purpose, then the mechanics, then the conditional validation rules; every sentence carries operational information. It is dense and long for one description, but there is no filler to cut.

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 10-parameter tool with no output schema, the description covers routing, the practically required run binding, cross-tool sourcing of dispatchId, and validation outcomes. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Even at 100% schema coverage, the description adds real meaning: it explains that `run` is effectively mandatory because MCP has no binding, that type=worker_done requires outcome and dispatchId, where dispatchId comes from (orca_get_task_status workers[].dispatchId), and that outcome on other types is rejected.

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?

States a specific verb and resource: send a message to an agent of a delegated job, with concrete purposes (supplement instructions, questions, escalation, completion reports). It does not differentiate from the plausible sibling orca_reply_message, so it stays short of a 5.

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?

Gives concrete routing rules: valid destinations (run:/dispatch:/@all/@codex/@worktree:), the default inbox when omitted, and the requirement to pass the runId returned by orca_delegate_task because MCP holds no run binding. It stops short of naming when to prefer a sibling such as orca_reply_message over this tool.

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