Skip to main content
Glama

agent_ex_submit

Dispatches self-contained coding tasks to an external detached worker and immediately returns a task_id without blocking; use continue_of to answer a worker's needs_input question.

Instructions

派发编码任务给外部 worker(detached runner),立即返回 task_id,不阻塞。 prompt 需包含完整上下文、约束与验收标准——worker 不共享当前会话上下文。 任务已提交,卡住/完成会推飞书,无需轮询。 同一 project_path 的写任务并发会互相踩文件——plan 负责串行派发或确保改动文件不重叠;只读分析任务不受此限,可并行。 对 needs_input 任务答疑续跑时传 continue_of=task_id,prompt 填答案,worker 将带着原上下文继续。 切到当前默认档(defaults.profile)以外的计费档 profile 时必须传 allow_metered=true,且只在用户本轮明确指定该 profile 或明确同意付费时传——429、额度上限、超时、失败都不构成同意。

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": {
      "prompt": "<prompt>"
    },
    "name": "agent_ex_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes任务工单(首轮)或对 worker 问题的答复(续跑)
profileNo运行 profile 名,默认取 config defaults.profile
continue_ofNo续跑目标任务 id(该任务须为 needs_input)
timeout_secNo每轮超时秒数,默认取 config
project_pathNo工作目录,默认 MCP server cwd
allow_meteredNo计费授权:切到当前默认档以外的计费档 profile 时才需要;仅当用户已明确指定该 profile 或同意为这次派发付费时才传 true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses async non-blocking execution, task_id return, Feishu push on stuck/completion so no polling is needed, and the file-collision hazard when write tasks share a project_path. It also states the billing authorization rule and the strictness around consent. These are exactly the behavioral facts an agent cannot get from structured fields.

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?

Six dense sentences, each carrying a distinct rule (purpose, prompt requirement, notification, concurrency, continuation, billing), with the core purpose front-loaded. A few items restate schema text (continue_of target must be needs_input, allow_metered conditions), which is minor redundancy rather than waste.

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 6-parameter mutation tool with no annotations and no output schema, this covers purpose, invocation requirements, concurrency safety, continuation and billing authorization. The remaining gap is failure/error semantics — what happens when the worker cannot start or the task fails — and the exact return payload beyond task_id.

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%, so the baseline is 3, but the description adds real meaning: prompt must contain full context, constraints and acceptance criteria because the worker shares no session context; project_path carries a write-concurrency constraint not in the schema; allow_metered gains the '429/timeout/failure is not consent' clause. timeout_sec and profile are not elaborated beyond the schema, keeping it just short of a 5.

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?

The opening sentence states a specific verb and resource (派发编码任务给外部 worker) plus the defining behavioral trait: detached, non-blocking, returns task_id immediately. That cleanly separates it from the sibling lifecycle tools (cancel/status/restart/doctor/version), so an agent knows this is the submission entry point.

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 explicit conditions for the two non-obvious modes: pass continue_of=task_id only when resuming a needs_input task, and pass allow_metered=true only when the user explicitly named a non-default profile or agreed to pay. It also warns that 429/quota/timeout/failure do not count as consent. The gap is that it never names an alternative for checking progress or cancelling, so the agent must infer sibling routing.

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