Skip to main content
Glama

delete_flow

Destructive

Permanently deletes a Directus flow and all its operations after confirmation, stopping dependent webhooks, schedules, triggers, and removing run history. Use it to remove flows you do not need.

Instructions

Deletes a flow and all of its operations, permanently. Requires confirm: true. Whatever depended on the flow stops working, including a webhook URL that pointed at it, its schedule and any flow that triggered it, and the run history goes with it. Use update_flow with status inactive to switch a flow off and keep it. Not reversible.

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

Input Schema

NameRequiredDescriptionDefault
idYesFlow ID
confirmNoConfirm deletion

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description still adds substantive detail beyond them: what breaks downstream (webhook endpoints, schedules, triggering flows), that run history is lost, and that the action is not reversible. This is exactly the added context the annotations cannot express.

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?

Front-loaded with the destructive scope, then the confirm requirement, then blast radius, then the safer alternative, then irreversibility. The blast-radius sentence is a long run-on that strings four clauses with commas, costing some readability.

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?

Two parameters, full schema coverage, no output schema needed, and annotations covering the safety profile. Everything an agent needs to decide and execute — irreversibility, cascade effects, confirm requirement, safer alternative — is present.

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; the description earns an extra point by clarifying that confirm must be true rather than merely present, which sharpens the boolean's meaning. Minor inconsistency: it says confirm is 'required' while the schema lists only id as required, though the description's reading is the safer and more useful one.

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?

A specific verb and resource plus scope: it deletes the flow and its operations, permanently. The cascade is spelled out (webhook URL, schedule, triggering flows, run history), so an agent knows this is a subtree delete, not a row delete, and can tell it apart from delete_items or update_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?

Explicitly names the alternative and the condition that selects it: use update_flow with status inactive to switch a flow off and keep it. It also states the confirm: true prerequisite inline, so an agent has both routing and invocation guidance without opening another definition.

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