Skip to main content
Glama

get_operations

Read-only

List the steps that make up Directus flows, optionally filtered by flow ID, to scan across flows and find operations of a given type. Read-only; listing never runs an operation.

Instructions

Lists the operations (steps) that make up flows, optionally narrowed to one flow with flow_id. Use get_flow with include_operations for the whole pipeline of a single flow, and this tool to scan across flows, for example to find every step of a given type. Read-only: listing an operation never runs it. Returns at most 50 operations unless limit says otherwise, each with its key, type, editor position and options.

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_operations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of operations to return (default: 50)
flow_idNoFilter operations by flow ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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, but the description adds the important clarification that 'listing an operation never runs it', which separates this from execution-oriented siblings like trigger_flow. It also discloses the default result cap (50) and the shape of returned fields, going beyond what the annotations provide.

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?

Three tightly packed sentences, front-loaded with what it does, then the sibling routing, then the behavioral and return-value notes. No filler or repetition.

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 simple two-parameter list tool with no output schema, the description covers purpose, alternative routing, read-only guarantee, result cap, and the fields returned. Nothing an agent needs to call it correctly is missing.

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% and both parameters carry their own descriptions, so the schema does the heavy lifting. The description restates flow_id as a narrowing filter and the limit default without adding format or syntax detail beyond the schema — the expected baseline of 3.

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 ('Lists the operations (steps) that make up flows') plus the optional narrowing scope via flow_id. It also draws the boundary against get_flow by name, so an agent can distinguish the two without opening either 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 names the alternative (get_flow with include_operations) and the condition that selects it (whole pipeline of a single flow). It also gives a concrete positive use case for this tool — scanning across flows to find every step of a given type.

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