Skip to main content
Glama

get_flows

Read-only

Lists Directus automation flows with filtering, sorting, search, and pagination so you can find active, inactive, or folder-specific flows; returns metadata only.

Instructions

Lists Directus automation flows with filtering, sorting, search and pagination. Use get_flow for one flow and its operations, get_operations for operations across flows, trigger_flow to run one. status narrows to active or inactive flows; folder (Directus 12.4+) narrows to one flow folder, where an empty string means root-level flows. Returns at most 25 flows unless limit says otherwise, and flow metadata only: operations are omitted unless get_flow asks for them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_flows"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort fields
limitNoNumber of flows to return (default: 25)
fieldsNoFields to return
filterNoFilter conditions
folderNoDirectus 12.4+: only flows in this folder (folder ID); pass "" for root-level flows
offsetNoNumber of flows to skip
searchNoSearch query
statusNoFilter by flow status

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+: only flows in this folder (folder ID); pass \"\" for root-level flows",
      +  "type": "string"
      +}
  2. First observedv12.3.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds useful context beyond annotations: default return limit of 25, flow metadata only (operations omitted unless requested via get_flow), and the folder behavior for Directus 12.4+. It doesn't cover auth or rate limits, but that's minor.

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?

Efficient, front-loaded paragraph with zero waste. The scoping constraint and sibling routing are stated clearly in a logical order.

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?

Complete for a filtered list tool with no output schema. The description covers return limits, omitted operations, and parameter-specific behavior, leaving no significant gap for an agent to call it correctly.

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 100%, so the schema already documents all parameters. The description reinforces status and folder semantics, but adds no syntax or format details beyond what the schema provides. Baseline 3 is appropriate.

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 (lists) and resource (Directus automation flows), plus the supported capabilities (filtering, sorting, search, pagination). It explicitly distinguishes itself from siblings by naming get_flow, get_operations, and trigger_flow.

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?

Provides explicit when-to-use alternatives: use get_flow for a single flow and its operations, get_operations for operations across flows, trigger_flow to run one. Also clarifies the status and folder filter narrowing.

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