Skip to main content
Glama

update_flow

DestructiveIdempotent

Updates a Directus automation flow by ID, modifying selected fields like name, status, trigger, options, or description while leaving other settings unchanged.

Instructions

Updates one flow by id: name, status, trigger, description or trigger options. Idempotent, and it replaces the keys present in data while leaving the rest alone. Switching status to active makes the flow start reacting to its trigger at once, and changing trigger or options can leave the flow inconsistent with operations built for the old trigger. Operations themselves are not edited here, so read them with get_flow or get_operations. This tool writes an automation and has nothing to do with analyze_relationships, which inspects the data model.

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": {
      "id": "<id>",
      "data": "<data>"
    },
    "name": "update_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFlow ID
dataYesFlow data to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare destructive=true and idempotent=true, and the description goes well beyond them: it specifies patch semantics ('replaces the keys present in data while leaving the rest alone'), the immediate side effect of status=active, and the real hazard that changing trigger/options can leave operations inconsistent with the old trigger. That risk disclosure is exactly what annotations cannot convey.

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?

Purpose and field list are front-loaded, followed by behavior, side effects, and disambiguation in a logical order. It runs four sentences and the analyze_relationships clause is somewhat tangential, but no sentence is filler.

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 nested-object mutation with no output schema, it covers the important behavior: partial semantics, side effects, prerequisite read tools, and trigger-change hazards. It does not say what the call returns (presumably the updated flow), which is a minor gap given there is no output schema.

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 100%, including per-field descriptions and the status enum, so the baseline is 3. The description does add the non-obvious partial-update contract for the data object and the runtime meaning of status=active, but it does not explain the structure of 'options' beyond what the schema says.

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?

States a specific verb and resource ('Updates one flow by id') and enumerates the mutable fields (name, status, trigger, description, trigger options). It also names the siblings it is not — get_flow, get_operations, analyze_relationships — so an agent can separate it from them without opening schemas.

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?

Gives concrete when-to-read guidance ('operations are not edited here, so read them with get_flow or get_operations') and explicitly excludes analyze_relationships. It stops short of covering the closest behavioral alternative, trigger_flow, so there is no guidance on activating a flow by status change versus triggering it directly.

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