Skip to main content
Glama

start_workflow

Launch a durable workflow run from a repo path and prompt; dependencies are pinned before creation, saved resources persist through pauses, and a workflow_run_id is returned.

Instructions

Start a durable workflow run; returns workflow_run_id rather than task_id.

Saved top-level resources are held through pauses and caller-input checkpoints; agent-node resources are acquired before a harness slot. Resources grant no access. Optional worktree {base_ref?, branch?, detach?} creates one shared checkout for the root and every child run after the run-scope grant. Nested callers and workflows whose agents are all read_only cannot request one. The default branch is harflow/workflow-<run_id>. Removal is explicit through harflow-ctl. Resources and the worktree plan are bound by expected_preview_hash.

Preserve spaces and word boundaries in prompt rather than compressing natural prose; the caller's source text is stored unchanged before workflow input assembly.

The complete dependency tree of any Run workflow node is resolved and pinned before the run is created, so later edits or deletes never reinterpret the run. Children are linked runs that share the root's harness-turn budget; public controls apply to the root run id only.

goal is optional nonblank text up to 64 KiB UTF-8, preserved verbatim. It complements the saved purpose and request without expanding permissions. notify reserves configured root-run settlement/attention webhooks before creation; notify_events selects terminal, attention, or both (default). Direct callers only; see docs/task-notifications.md. Completion requires an assessment with evidence for the current goal revision; conflicts or unverifiable criteria need input.

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>",
      "repo_path": "<repo_path>"
    },
    "name": "start_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNo
nameYes
notifyNo
promptYes
freedomNo
networkNo
worktreeNo
overridesNo
repo_pathYes
notify_eventsNo
expected_preview_hashNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and delivers substantial behavioral detail: durability across pauses and checkpoints, resource acquisition ordering, worktree creation and default branch naming, explicit removal via harflow-ctl, pinned dependency trees, shared harness-turn budget for children, and webhook reservation. It omits failure/error behavior and permission prerequisites beyond the cryptic "Resources grant no access," keeping it below a 5.

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 core purpose is front-loaded and most sentences carry real information, but the text is a dense unbroken block with opaque phrasing ("Resources grant no access," "bound by expected_preview_hash") and no grouping by parameter or concern. It reads as internal notes rather than a structured definition.

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?

For an 11-parameter, mutation-style tool with zero schema coverage and no annotations, the description covers the distinctive parameters and the run semantics well, and an output schema exists so return values need not be explained. Still, five parameters and error/failure behavior are left undocumented, which is a meaningful gap at this complexity.

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 coverage is 0%, so the description must compensate, and it does for the harder parameters: goal (nonblank, 64 KiB UTF-8, verbatim), prompt (preserve spacing), notify/notify_events (terminal/attention/both default), worktree ({base_ref, branch, detach}), and expected_preview_hash. However, name, repo_path, freedom, network, and overrides are entirely unexplained, leaving nearly half of 11 parameters undocumented.

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 states a specific verb and resource ("Start a durable workflow run") and even clarifies the return value ("workflow_run_id rather than task_id"), which distinguishes it from start_task. It stops short of explicitly naming a sibling workflow tool to contrast against, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage constraints are stated (worktree unavailable to nested callers and all-read_only workflows; notify is direct callers only; expected_preview_hash binds the plan), but there is no explicit when-to-use/when-not guidance relative to preview_workflow_run, apply_workflow_draft, or start_task. The agent must infer the intended entry point from context.

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