Skip to main content
Glama

workflow_builder

Generate a new workflow or refine the current canvas into an unsaved validated proposal. It defines orchestrator instructions, nodes, connections, and layout for execution.

Instructions

Generate a workflow, or refine the current canvas into an unsaved validated proposal.

Orchestrator instructions belong in orchestrator.instructions; Start/End are structural. Optional on_demand_nodes are a separate ordered list with globally unique local id, title, required nonempty instructions, optional call_condition (When to call guidance), agent, freedom, network, session_mode agent_decides|fresh|resume and execution_mode. They have no position, role or connections. max_on_demand_calls defaults to 5 (1–50) per routing/question checkpoint; no per-node or per-run call cap exists.

Write prompt in plain prose: preserve spaces and word boundaries rather than concatenating words to save tokens. The caller's prompt is retained unchanged before builder input assembly.

Keep node and connection instructions concise and task-specific. HarflowMCP owns runtime retries, budget enforcement, configured fallback dispatch and user interaction; use existing configuration fields for limits and fallback candidates, and orchestrator needs_input for clarification or approval. End means intentional workflow termination, not waiting for user input. Preserve legitimate task branches and revision loops.

Layout uses top-left logical point coordinates with x/y >= 0 and a 10-point dot grid. Agent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72 (reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges and avoid overlaps. Arrange forward steps left to right and parallel branches on separate rows. Use routing_mode="explicit". Ordinary outgoing paths are exclusive alternatives. Parallel execution requires paired parallel_start/parallel_end structural nodes with a shared parallel_group_id; every branch must reach its matching end. Parallel start defaults to branch_selection: "all". With branch_selection: "orchestrator", the orchestrator selects applicable issued branch continuations, assigns each selected entry through branch_assignments, and records a non-empty selection_reason explaining selections and exclusions before dispatch. Optional selection_guidance advises that choice. Selected branches may contain multiple steps and properly nested groups; convergence uses the frozen selected membership, including singleton selections. Preserve existing node positions exactly unless the user explicitly asks to move or rearrange them. Preserve any supplied Run workflow nodes exactly (workflow_ref, orchestrator_mode, child_session_policy, attempts, timeout, optional); never author new Run workflow references. Child session policy is agent_decides (default), fresh, or resume, and is inactive in Current mode. Resume reuses only the latest completed compatible invocation in the immediate parent run, with fresh workflow state; explicit Resume never falls back Fresh. The canvas expands automatically; there is no fixed right or bottom boundary.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
agentNo
promptYes
sourceNo
fallbacksNo
repo_pathNo
definitionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

B3.3/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 mostly discharges it: it discloses that output is a validated but unsaved proposal, that the caller's prompt is retained unchanged before input assembly, that max_on_demand_calls defaults to 5 (range 1-50) with no per-run cap, that the canvas expands with no fixed boundary, and that HarflowMCP owns retries, budget enforcement and fallback dispatch. It omits permissions/auth and any indication of failure modes when validation fails. The annotation bar is fully on the description here, and it clears it for behavior, if not for access prerequisites.

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 purpose is front-loaded in sentence one, and the remainder is loosely grouped into paragraphs by topic (nodes, runtime ownership, layout geometry, parallelism, preservation rules). But the piece is roughly thirty lines of dense prose with no headings or bullets, and it mixes top-level tool rationale with deep node-geometry minutiae like a 10-point dot grid and 200x92 point node sizing. Some of that detail is necessary given the empty schema, but the density makes it hard to scan for the two or three facts an agent needs before calling.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and the description is genuinely rich on authoring semantics and invariants. What it lacks is the surrounding lifecycle context: whether the returned proposal must be handed to apply_workflow_draft or save_workflow, and what source, repo_path and agent mean at the top level. For a seven-parameter, high-complexity authoring tool, that is a real gap.

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 0%, so the description must compensate for seven titled-only parameters, and it only partly does. It adds real meaning for prompt (plain prose, preserved verbatim) and fallbacks (use existing configuration fields for limits and fallback candidates), and gestures at definition via the canvas terminology. It says nothing about repo_path, source, agent, or what name controls, leaving four of seven parameters undocumented anywhere.

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 opening sentence gives a specific verb and resource: 'Generate a workflow, or refine the current canvas into an unsaved validated proposal.' The 'unsaved validated proposal' framing usefully implies this produces a draft rather than a persisted entity. However, it never names or contrasts with the obviously adjacent siblings (followup_workflow_builder, apply_workflow_draft, save_workflow), so differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement, no when-not-to-use statement, and no named alternative. A reader must infer that this is the authoring entry point and that saving/applying happen elsewhere, despite siblings like followup_workflow_builder and apply_workflow_draft sitting right next to it. The volume of node-authoring rules crowds out any routing guidance.

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