Skip to main content
Glama
songzhifei512

multi-agent-bridge

workflow_plan

Turn a one-line goal into a validated multi-stage DAG plan, auto-approving simple cases or sending complex ones to human review before execution.

Instructions

Orchestrator 自动拆解(L1):给一句话目标, 自动产结构化的多段 DAG 计划。调用拆解器模型把 goal 拆成 stages[](每段 title/description/criteria/agent/depends_on),做结构自检(数组非空/每段可验收 criteria/agent 已注册/依赖引用合法/无环反向DFS/≤8段),并按复杂度定 L3 人审闸:复杂(段数或跨 agent 并行超阈值)→approval_required=true 交主控审核;小任务→auto-approve 可直接接 workflow_start。不直接建任务, 返回可执行计划供人审/改造。拆解器经 runAgent(继承 429 退避/多模型轮转)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNo一句话目标任务(如 '给 <服务> 加 <能力>');有 stages 手填时可选
titleNoauto_land 时工作流标题(默认 goal 前 40 字)
stagesNo主控/测试手填计划(跳过拆解器),直接 L2 自检 + L4 落地
contextNo可选补充上下文(仓库路径/既有代码/约束/技术栈)
auto_landNoL4 自动落地:true 且拆解过自检且非 L3 需人审 → 直接落成真实任务 DAG(工作流卡),返回 task_id 链;需人审时忽略
decomposerNo拆解器 agent 名, 默认 qwen(返回干净 JSON 稳定)。可换 claude
workflow_idNoauto_land 时工作流稳定 id(默认由 goal 派生),多次调用归并同卡
approve_thresholdNoL3 人审闸阈值:stages 数 > 此值视为复杂需人工审(默认 3;含跨 agent 并行也触发)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses several behaviors: it calls a decomposer model via runAgent with 429 backoff and multi-model rotation, performs structural self-checks (cycle detection, stage count limit), and sets approval_required based on complexity. It also clarifies it returns a plan and does not create tasks, which is valuable beyond what the schema provides.

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

Conciseness3/5

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

The description is a single dense paragraph covering many details (decomposition, self-checks, approval gates, runAgent behavior). While every sentence carries useful information, it is not front-loaded with a simple summary and may overwhelm an agent. The core purpose is stated first, but the length reduces scannability.

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?

The description explains the tool's main flow, the return of an executable plan for human review, and the approval mechanism. It even mentions the plan structure (stages with title/description/criteria/agent/depends_on), which is helpful since there is no output schema. It could mention error handling, but for a planning tool it is largely complete.

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 description coverage is 100%, so parameters are already well documented. The description adds context about the 'goal' parameter ('一句话目标') and implies the 'approve_threshold' concept through the approval gate logic, but it does not go into per-parameter semantics beyond the schema. Baseline 3 is appropriate.

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 description opens with 'Orchestrator automatic decomposition (L1)' and clearly states it takes a one-sentence goal and produces a structured multi-stage DAG plan. It explicitly says it does not directly create tasks, which distinguishes it from task_create, and mentions it can connect to workflow_start, differentiating it from execution-focused tools.

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?

The description says it is for turning a one-sentence goal into a plan, and notes that small tasks can auto-approve and connect to workflow_start, implying this tool is the planning step before execution. It also states it does not create tasks, which helps rule it out when task creation is needed. However, it does not explicitly name alternatives or state when not to use it.

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