Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

Delegate several tasks in parallel

oc_delegate_parallel

Launch multiple independent OpenCode tasks in parallel, each with its own model, agent, and skills, then wait for all results. Use for fan-out research, separate files, or model comparison.

Instructions

Start several independent OpenCode tasks at once (one session each, with any model/agent/skills) and wait for all of them. Built for fan-out: multi-angle research, independent files, model comparison.

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": {
      "tasks": "<tasks>"
    },
    "name": "oc_delegate_parallel"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNotrue (default): wait for the end and return the result. false: start in the background and return the session_id.
tasksYes
detailNofinal = answer only; summary (default) = answer + tools + files; full = complete transcript of the turn.
timeout_sNoMax wait in seconds (default 900). Past it, the task keeps running and oc_wait picks it up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries full burden: it does disclose the blocking/default-wait behavior ("wait for all of them") and one-session-per-task isolation, and the schema covers wait/timeout/detail. However it says nothing about failure semantics (what happens if one of N tasks errors), partial results, concurrency/capacity limits, or that aborted timeouts leave tasks running for oc_wait — the last is only in the timeout_s schema text.

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

Conciseness5/5

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

Two sentences, zero waste, and the primary capability is front-loaded ahead of the use-case rationale. The fan-out examples immediately follow the capability rather than padding it.

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 four-parameter fan-out tool with no output schema and high schema coverage, the description plus schema covers what an agent needs to invoke it correctly. The remaining gap is behavioral rather than definitional: no statement on error/partial-result handling across a batch, which matters for the "wait for all of them" contract.

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 coverage is 75%, so the baseline is 3. The description adds only the summary hint "with any model/agent/skills", which gestures at the nested task fields without explaining them; wait, detail, and timeout_s semantics live entirely in the schema. Little meaning is added beyond structured fields.

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 ("Start several independent OpenCode tasks at once (one session each...)") and pins the scope with "wait for all of them". It implicitly separates itself from the single-task sibling by emphasizing "several"/"fan-out", but it never names oc_delegate outright, so the contrast is inferential rather than explicit.

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 when-to-use framing via "Built for fan-out: multi-angle research, independent files, model comparison", which tells an agent the eligibility criterion (tasks must be independent). It stops short of exclusions — no guidance on dependent/sequential work, on when to pick this over oc_delegate for a single task, or on cost of large fan-outs.

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