Skip to main content
Glama

create_flow

Create an automation flow with a trigger (manual, schedule, event, webhook) and optional initial operations in one call; set status inactive to prevent immediate execution.

Instructions

Creates an automation flow and, optionally, its first operations in the same call. trigger selects what starts the flow (manual, schedule, event, webhook) and options carries the trigger-specific configuration, so a schedule flow needs its cron expression in options. A flow created with status active starts reacting immediately, events included, so create it inactive when that is not wanted. Each operations entry needs key, type and editor coordinates; operations are created but not chained, so wire the resolve and reject paths with update_flow or in the admin app. Use update_flow to change a flow and trigger_flow to run one.

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

Input Schema

NameRequiredDescriptionDefault
nameYesFlow name
folderNoDirectus 12.4+: flow folder ID to file the flow under (omit for root)
statusNoFlow status (default: active)
optionsNoTrigger-specific options
triggerNoTrigger type (e.g., manual, schedule, event, webhook)
operationsNoInitial operations to create with the flow
descriptionNoFlow description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv12.6.1
    • addedInput schema / properties / folder
      Added value: +{
      +  "description": "Directus 12.4+: flow folder ID to file the flow under (omit for root)",
      +  "type": "string"
      +}
  2. First observedv12.3.3

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare write/not-destructive/open-world, but the description discloses the real consequence: a flow created with status active starts reacting immediately, events included. It also warns that operations are created but not chained, which is a behavioral limitation an agent could not infer from 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 dense but front-loaded — the create scope and the active-status hazard come before the sibling routing. Some sentences carry multiple clauses (trigger/options coupling), so it reads as packed rather than wasteful; nothing is redundant with the title or annotations.

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 7-parameter tool with nested objects and no output schema, it covers the risky parts: status side effects, trigger/options coupling, required operation fields, and the unchained-operations caveat. The one gap is the return value — it never says what the created flow yields (e.g., an ID needed to call update_flow) — and there is no output schema to fall back on.

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 would be 3, but the description adds real coupling semantics the schema omits: trigger determines what starts the flow, options carries trigger-specific configuration, and a schedule flow needs its cron expression there. It also states that each operations entry requires key, type and editor coordinates, reinforcing the required nested fields.

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 first sentence names a specific verb (Creates) and resource (automation flow) and adds a non-obvious scope note: it can also create the first operations in the same call. That scope distinction separates it cleanly from update_flow and trigger_flow, which are named later.

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

Usage Guidelines5/5

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

It gives explicit routing: use update_flow to change a flow, trigger_flow to run one, and update_flow or the admin app to wire resolve/reject paths since this tool does not chain operations. It also states a conditional when-not ('create it inactive when that is not wanted'), which is exactly the kind of decision guidance an agent needs before mutating state.

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