Skip to main content
Glama

Orca Resolve Gate

orca_resolve_gate

Approve or reject a pending decision gate so a Commander job can proceed; validates the gate against its bound run and can restrict resolution to a task.

Instructions

pending の判断ゲート(Decision Gate)を承認/却下して Commander を進める。内部で gate-list から対象を読み、orca orchestration gate-resolve --id --resolution --json を 1 回呼ぶだけ。gate は Run バインドスコープなので run は必須(consumer_fenced 時だけ run-use で切り替えて 1 回再試行)。run には poll(gates[].runId / blockedReasons[].detail.runId)で得た そのゲートの所属 Run を渡すこと — Commander が sub-run を作っていると、ゲートは呼び出し元 Run と違う Run に存在する。gateId と run の組が一致しない場合は何も変更せずに gate_run_mismatch で拒否する。解決済みのゲートには何もしない(冪等)。Commander Prompt が「承認ゲート無しでは merge/push/deploy をしない」と約束しているため、これを呼ぶ手段が無いとジョブが途中で止まる。認可の境界: gate-resolve は「Run ID と Gate ID を知る誰でも」解決できる CLI 構造で、MCP 側は単一ユーザー / 信頼できるクライアント前提の認可を持たない。自分の job のゲートだけを解決させたい場合は taskId(通常は orca_delegate_task の taskId)を渡す — ゲートの task がその task またはその部分木に属さなければ gate_task_mismatch で何も変更せずに拒否する。指定なしは所属 task を点検しない。taskId の点検は任意の誤操作防止であり厳密な認可ではない(Run をまたぐ親子関係は検証しない)。

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": {
      "gateId": "<gateId>",
      "resolution": "<resolution>",
      "run": "<run>"
    },
    "name": "orca_resolve_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYes対象の orchestration Run ID(gate は Run バインドスコープ。MCP 側はバインドを持たないので必須)
gateIdYesorca_get_task_status の gates[].id(gate_… の ID)
taskIdNo任意: この解決が自分の job のものかを点検させる task ID(通常は orca_delegate_task の taskId)。ゲートの task がこの task またはその部分木に属さない場合は gate_task_mismatch で拒否する(何も変更しない)。指定なしはゲートの所属 task を点検しない(gateId と run が合っていれば解決する)。これは誤操作防止の任意チェックで、厳密な Job 単位の認可ではない(Run をまたぐ親子関係は検証しない)
resolutionYes結論のテキスト(gate の options のいずれか。例: approve / reject)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare a non-read-only, non-destructive, non-open-world mutation, while the description adds substantially: idempotent no-op on resolved gates, gate_run_mismatch and gate_task_mismatch rejections that change nothing, a single retry on consumer_fenced, and an explicit statement that MCP-side authorization is absent. It further discloses the important sub-run caveat that a gate may live in a different Run than the calling one.

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?

The purpose is front-loaded in the first sentence, followed by mechanism, error modes, and authorization caveats in a logical order. It is long and the taskId caveat is repeated nearly verbatim from the schema description, which is the main efficiency loss.

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 mutation tool with no output schema, the description covers everything an agent needs: required run sourcing, mismatch rejection semantics, idempotency, retry behavior, and the limits of the optional taskId check. Nothing material about correct invocation is left unstated.

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% and the schema descriptions already document run, gateId, taskId, and resolution, so the baseline is 3. The description still adds meaning beyond the schema: the requirement that run be the gate's owning Run as obtained from poll output, and the warning that Commander sub-runs make the gate's Run differ from the caller's Run.

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?

States a specific verb pair (approve/reject a pending Decision Gate) plus the effect of advancing Commander, and names the underlying operation (`orca orchestration gate-resolve`). It is clearly distinguishable from siblings like orca_get_task_status or orca_delegate_task, which read state or create tasks rather than resolving gates.

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?

Gives the trigger condition (Commander's promise of no merge/push/deploy without an approval gate, so the job stalls otherwise), the idempotency behavior for already-resolved gates, and when to supply taskId versus when to omit it. It also points to orca_get_task_status / poll output (gates[].runId, blockedReasons[].detail.runId) as the source for the required run value.

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