Skip to main content
Glama
songzhifei512

multi-agent-bridge

workflow_start

Create a phased DAG for multi-agent workflows, supporting linear, competitive, collaborative, and dynamic paradigms to dispatch agents through dependent stages with parallel tasks and optional approvals.

Instructions

把一次多Agent工作流落成阶段依赖链任务 DAG,供面板「当前工作流」按卡片/聚焦图展示。支持四种范式:①线性链模板 'bmad'(需求→架构→实现→评审) 或 args.stages 自定义任意阶段;②竞争式范式 args.paradigm='compete'(同一问题派 ≥2 个视角并行各出方案 → 主控收敛最优,传 args.competitors:[{agent,view}],可 args.converge_title/args.converge_agent);③合作式范式 args.paradigm='collaborate'(设计→实施→审核 三段链且实施者与审核者分离,传 args.designer/args.implementer/args.reviewer,默认 claude→codex→claude);④动态路由范式 args.paradigm='dynamic'(自动分析 goal 选 compete 或 collaborate,路由理由写进工作流 meta + 各 task description「上墙」,参数缺省时用默认 agent 分配:compete=claude/codex/qwen 三视角,collaborate=claude设计/codex实施/qwen审核)。 模板库:template 可选 bmad/bmad-lite/review-only/fix-flow,或 '_list' 返回清单; 并行阶段:args.stages[i].agents=[a,b,c] 或 parallel:true → 该阶段铺 N 个同深度并行任务(共享前置,下一阶段依赖该阶段全部)。args.workflow_id 稳定 id + args.title 让多次调用归并成同一张工作流卡;可选 args.approve_each_phase 每阶段人工门。返回阶段 task_id 链。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNo产出目标,会写进所有阶段;dynamic 据此自动选范式
titleNo工作流标题前缀(每个 phase 任务标题带上)
stagesNo自定义阶段链;每项可带 agents:[a,b,c] 实现同阶段并行多 Agent
designerNo合作式:方案设计 Agent(默认 claude)
paradigmNo协作范式:compete=竞争式(多视角并行评+主控收敛)|collaborate=合作式(设计→实施→审核,评审分离)|dynamic=动态路由(自动选 compete/collaborate + 理由上墙)
reviewerNo合作式:最终审核 Agent(默认 claude,不得=implementer)
templateNo线性链工作流模板名(bmad/bmad-lite/review-only/fix-flow,默认 bmad;'_list' 返回清单;paradigm 非 null 时可省略)
competitorsNo竞争式必填:≥2 个视角,如 [{agent:'claude',view:'方案A'},{agent:'codex',view:'方案B'},{agent:'qwen',view:'边界补充'}]
implementerNo合作式:代码实施 Agent(默认 codex,不得=reviewer)
converge_agentNo竞争式收敛/主控 Agent(默认 null,主控自行认领)
converge_titleNo竞争式收敛阶段标题
approve_each_phaseNotrue → 每阶段 require_approval(人工分批)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses side effects (creating a task DAG), merge behavior via workflow_id/title, optional per-phase approval gates, default agent assignments per paradigm, dynamic routing rationale 'posted on the wall', and the output of a stage task_id chain. This is rich behavioral disclosure beyond the 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?

The description is front-loaded with the core purpose and dense with actionable details; every sentence earns its place. However, it is a single run-on paragraph with heavy enumeration and nested parentheticals, which makes parsing harder than necessary. Slight structural breakdown into bullets would improve readability without losing content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with no output schema and no annotations, the description is remarkably complete: it covers all four paradigms, defaults, templates, parallel-stage semantics, id-based merging, approval gates, routing rationale, and the return format. There are no significant gaps an agent would need to fill elsewhere.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, giving a baseline of 3, but the description adds substantial combinatorial meaning: which parameters apply per paradigm, how competitors arrays feed convergence, default designer/implementer/reviewer roles, how stages[i].agents or parallel triggers N-way parallel tasks, and how workflow_id/title produce card merging. This goes well beyond the schema's per-field descriptions.

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 states a specific verb and resource: it 'turns a multi-agent workflow into a stage-dependency task DAG' for panel display. It enumerates the four supported paradigms and template options, which clearly differentiates it from siblings like workflow_plan or task_create that handle planning or individual task creation.

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 gives explicit context for when to use each paradigm (linear, compete, collaborate, dynamic) and how to configure them, plus template selection and parallel-stage options. However, it never contrasts this tool with sibling alternatives or states exclusions (e.g., when to use workflow_plan instead), so the when-not-to-use guidance is missing.

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