Skip to main content
Glama

Power Automate MCP Server by FlowStudio

Restore deleted flow

restore_live_flow
Idempotent

Restore a deleted Power Automate cloud flow, using its flow id. Take the id from the delete_live_flow response, your own notes, or — with an admin account — list_live_flows with mode=admin and includeDeleted=true, the only listing that returns deleted flows (they come back with state=Deleted). The user-scoped listing never shows them. Restore can complete asynchronously — confirm with get_live_flow. The restore window is limited and its length is not documented, so restore promptly.

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>"
    },
    "name": "restore_live_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowNameYesThe id of the deleted flow. Cannot be looked up — nothing lists deleted flows.
environmentNameYesName of the Power Platform environment the flow was deleted from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (idempotent, non-destructive), the description discloses that restore can complete asynchronously and that the restore window is limited but undocumented, which drives urgency and a verification step. These are behaviors an agent could not infer from the annotation set or schema.

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-loads the action and identifier, then layers sourcing options and caveats in a logical order with no filler sentences. The dense em-dash parentheticals pack a lot into single sentences, which slightly reduces scanability but does not waste words.

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 restore mutation with no output schema, the definition covers id acquisition, scope limits, async completion, and the time window — everything needed to invoke it correctly. The only gap is return-value shape, which is acceptable given no output schema is declared.

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?

The description usefully resolves the naming trap by clarifying that the 'flowName' parameter actually takes a flow id, and explains where that id comes from. However, it contradicts the schema's own note that deleted flows 'cannot be looked up — nothing lists deleted flows' by describing an admin listing that does return them, leaving an inconsistent message about id discovery.

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 ('Restore a deleted Power Automate cloud flow') and names the exact identifier to supply. It is immediately distinguishable from sibling mutations like delete_live_flow, update_live_flow, or set_live_flow_state.

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?

Gives three concrete sourcing paths for the flow id (delete_live_flow response, own notes, admin-scoped list_live_flows with mode=admin and includeDeleted=true) and explicitly rules out the user-scoped listing. It also names the verification follow-up (get_live_flow), so the agent knows the full call sequence.

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.