Skip to main content
Glama

trigger_flow

Destructive

Run a Directus flow now with an optional trigger payload and return its last output; inspect the flow first because side effects can modify data, send email, or call external services.

Instructions

Runs one flow now and returns whatever its last operation produced. The side effects are whatever the flow does, which can mean writing items, sending mail or calling external services, so treat it as destructive unless the flow is known to be read-only. Flows with a manual trigger accept this reliably; others may refuse it or ignore the payload. data becomes the trigger payload and must match what the flow expects. Read the flow with get_flow before running it.

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

Input Schema

NameRequiredDescriptionDefault
idYesFlow ID
dataNoData to pass to the flow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds real substance beyond them: side effects are flow-dependent (writing items, sending mail, calling external services), and non-manual-trigger flows may reject or silently ignore the payload. That silent-ignore caveat is a behavioral trait an agent could not infer from annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The execution verb and return behavior are front-loaded, followed by risk, compatibility caveats, parameter meaning, and prerequisite in a logical order. Every sentence carries distinct information with no filler.

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?

With no output schema, the description compensates by explaining that the return value is the last operation's output. For a two-parameter execution tool with rich annotations, the coverage of risk, prerequisites, payload semantics, and failure modes is sufficient to invoke it correctly.

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 meaning: 'data becomes the trigger payload and must match what the flow expects,' which explains both the parameter's role and the validation constraint. The id parameter is left to the schema, which is acceptable since it is fully documented there.

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 opens with a specific verb and resource — 'Runs one flow now' — and immediately states what is returned ('whatever its last operation produced'). This clearly separates it from sibling management tools like get_flow, create_flow, and update_flow, which configure flows rather than execute them.

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 provides an explicit prerequisite ('Read the flow with get_flow before running it') and a compatibility condition ('Flows with a manual trigger accept this reliably; others may refuse it or ignore the payload'). It also gives a decision rule for risk: treat it as destructive unless the flow is known to be read-only.

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