Skip to main content
Glama

delegate_task

Delegate self-contained subtasks to a DeepSeek worker and get synchronous results with token and cost estimates; reuse sessions via sessionKey and use pure-text mode for text or code generation.

Instructions

把可独立完成的子任务交给 DeepSeek worker(同步返回,附带实时 Token 消耗与人民币费用估算)。同轮任务/同批子任务传相同 sessionKey 复用会话;无关新任务换新 key 或省略(每次全新、不污染)。纯文本/代码生成任务可传 pureText:true 禁用工具调用以大幅提速省 Token。

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": {
      "task": "<task>"
    },
    "name": "delegate_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo工作目录(绝对路径);默认自动回退到工作区目录(Windows 路径大小写/斜杠自动归一化)
taskYes要 DeepSeek worker 执行的自然语言任务(越具体越好)
tierNo难度档:flash=便宜快(默认);max=更强/1M上下文
freshNo为 true 时强制重开会话(清空记忆)
warnMsNo提醒阈值(毫秒),默认 900000=15 分钟
contextNo可选:来自大脑的记忆/上下文,注入给 worker 参考
forceMsNo强制收尾阈值(毫秒),默认 1500000=25 分钟
pureTextNo为 true 时开启纯文本/纯代码快速模式(禁止 worker 调用本地 shell/文件工具,直接生成结果,防过度自检耗时)
timeoutMsNo硬超时(毫秒),默认 1800000=30 分钟;范围 10s~2h
sessionKeyNo会话键:相同 key 复用同一常驻会话;省略=一次性全新会话
reasoningEffortNo思考深度:low=极速浅思考;high=深度思考(默认);max=极限思考

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and discloses key traits: the call blocks synchronously until completion, reports token consumption and RMB cost, and reuses or resets conversational memory by sessionKey. It does not explain timeout/failure outcomes or what the worker returns on error, which matters given 11 parameters and no output schema.

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?

Three tightly packed sentences lead with the core purpose, then session-reuse rules, then the speed-optimization flag. The semicolon-linked clauses stay efficient, though the density of the description costs on readability.

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 an 11-parameter synchronous delegation tool with no annotations or output schema, the definition covers the essential contract: blocking return, cost reporting, memory reuse, and the fast path. Missing are the resilience semantics, namely what happens when timeoutMs or forceMs fire and how failures surface to the caller.

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?

The input schema already documents every parameter at 100% coverage, so the baseline of 3 applies. The description adds real meaning for sessionKey (same key reuses a resident session, omitted means fresh) and pureText (disables the worker's shell/file tools to avoid over-self-checking), but leaves tier, reasoningEffort, context, and the millisecond thresholds entirely 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 definition states a specific verb and resource: it hands independently completable subtasks to a DeepSeek worker and returns results synchronously with token and cost accounting. The scope is clear, but it never names the sibling delegate_parallel, so an agent must infer which tool to use for parallel fan-out.

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 gives concrete conditions: reuse the same sessionKey for same-round or same-batch subtasks, use a new or omitted key for unrelated tasks, and set pureText:true for pure text/code generation. What is missing is explicit when-not guidance, such as when to prefer delegate_parallel or when delegation is unnecessary.

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