Skip to main content
Glama

delegate_parallel

Delegates multiple subtasks from one job to DeepSeek workers in parallel with a concurrency cap, returning full results and token costs; tasks sharing a sessionKey run serially to preserve context.

Instructions

一次把"一个任务拆出的多条子任务"并发外包给 DeepSeek worker(服务端并发 + 并发上限,统一返回全文及汇总 Token 账单)。每条可单独配 sessionKey/tier/cwd/pureText/reasoningEffort/超时;共享同一 sessionKey 的条目会自动排队串行并共享上下文,不同 key 才是真并行。

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": "delegate_parallel"
  }
}

Input Schema

NameRequiredDescriptionDefault
tasksYes子任务数组
maxConcurrencyNo并发上限(默认 4,最大 16)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses real behavioral traits: server-side concurrency with a cap, the combined return of full text plus an aggregated token bill, and the serialization/shared-context behavior of repeated sessionKeys. It does not cover failure handling for individual subtasks or cost/latency implications.

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?

Two dense sentences, with the core action and the concurrency-cap fact front-loaded and the parameter/sessionKey caveats following. The parenthetical packing is heavy but every clause carries operational information.

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 fan-out tool with no output schema and no annotations, the description covers the essentials: what it returns (full text plus a token summary), how concurrency is limited, and how sessionKey changes execution order. Only error/partial-failure behavior remains unaddressed.

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?

The schema already documents every parameter, so the baseline would be 3; the description earns more by explaining semantics the schema cannot express, namely that sessionKey groups entries into a serial queue with shared context while distinct keys run in parallel. Several per-entry knobs (fresh, warnMs, forceMs, context) are left to the schema.

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 has a specific verb and resource: it fans out multiple subtasks split from one task to DeepSeek workers concurrently in a single call. The batch/concurrency framing implicitly separates it from the single-task sibling delegate_task, but it never names that sibling, so the differentiation is left slightly inferential.

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?

Clear usage context is given: use it when one task has been broken into multiple subtasks that can be outsourced at once. It also gives an actionable rule (same sessionKey means queued and serial, different keys mean truly parallel), though it states no explicit exclusions and names no alternative for the single-task case.

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