Skip to main content
Glama

get_flow

Read-only

Fetch a Directus automation flow by ID and optionally expand its operations to inspect the full pipeline in one read-only call.

Instructions

Fetches one automation flow by id, optionally with its operations expanded so the whole pipeline can be read in a single call. Use get_flows to find the id and get_operations to list operations across several flows. Read-only: reading a flow never runs it, trigger_flow does that. include_operations costs an extra request and makes the response large on long flows.

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": "get_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFlow ID
include_operationsNoInclude flow operations in response

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.7/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 the safety profile is known; the description still adds real context beyond them by clarifying that reading never runs the flow, that trigger_flow is the execution path, and that include_operations costs an extra request and inflates the response on long flows. It does not cover what happens with a nonexistent or malformed id, so it stops short of fully exhaustive.

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?

Four sentences, front-loaded with the core action, then alternatives, then the read-only clarification, then the parameter tradeoff. Nothing is redundant and every sentence carries distinct information.

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?

For a two-parameter read tool with no output schema, the definition covers purpose, sibling routing, side-effect safety, and the cost/size implication of the optional flag. Nothing an agent needs in order to call this correctly is missing.

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 is 3, but the description adds meaning the schema lacks: why include_operations exists (read the whole pipeline in one call) and its tradeoff (extra request, large response on long flows). The id parameter's provenance is also implied via the get_flows pointer.

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 ("Fetches one automation flow by id") plus the optional expansion of operations into the same response. It also names the sibling tools get_flows, get_operations and trigger_flow, so an agent can distinguish this from the list, cross-flow, and run variants without opening any schema.

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?

Explicitly routes the agent: use get_flows to obtain the id and get_operations when operations across several flows are wanted, and trigger_flow when the flow should actually execute. It also gives the condition for the include_operations flag ("so the whole pipeline can be read in a single call").

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