Skip to main content
Glama

Power Automate MCP Server by FlowStudio

Delete flow

delete_live_flow
Destructive

Delete a Power Automate cloud flow. DESTRUCTIVE and not discoverable afterwards. Requires confirmDisplayName (the flow's exact displayName, from get_live_flow) and a reason, which is recorded in the audit log. A deleted flow CAN be restored with restore_live_flow using the flowName returned here. If the id is lost, only an environment admin can recover it — list_live_flows mode=admin includeDeleted=true is the only listing that returns deleted flows. If you only want the flow to stop running, use set_live_flow_state with state=Stopped instead. Works only while the user has Delete Lock off; otherwise the call is refused and nothing is deleted.

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": {
      "environmentName": "<environmentName>",
      "flowName": "<flowName>",
      "confirmDisplayName": "<confirmDisplayName>",
      "reason": "<reason>"
    },
    "name": "delete_live_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesShort note on why this flow is being deleted. Recorded in the audit log.
flowNameYesThe flow id to delete.
environmentNameYesName of the Power Platform environment.
confirmDisplayNameYesThe flow's exact displayName, as returned by get_live_flow. Must match, or the call is refused and nothing is deleted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 readOnlyHint=false, but the description adds substantial context beyond them: the flow becomes non-discoverable, the reason is audit-logged, restore is possible via restore_live_flow with the returned flowName, and admin-only recovery (list_live_flows mode=admin includeDeleted=true) is the fallback. It also discloses the Delete Lock precondition and that refusal is a no-op.

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?

Front-loads the destructive warning, then the prerequisites, then recovery, then the safer alternative. Every sentence carries distinct operational information; no filler or repetition of the schema.

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 four-required-parameter destructive mutation with no output schema, the definition covers safety, preconditions, failure mode, recovery path, and the lighter-weight alternative. Nothing an agent needs to call this correctly or warn the user 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; the description earns above that by explaining provenance and consequence — confirmDisplayName must come from get_live_flow and must match exactly, and reason lands in the audit log. It does not restate types, but it ties each parameter to a workflow step and an outcome.

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?

Opens with a specific verb+resource ("Delete a Power Automate cloud flow") and immediately distinguishes itself from restore_live_flow and set_live_flow_state. An agent can tell exactly what this tool does versus its siblings 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 set_live_flow_state with state=Stopped if you only want the flow to stop, use get_live_flow to obtain confirmDisplayName, and note that the call is refused when Delete Lock is on. Both the when-to-use and the when-not-to-use cases are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.