Skip to main content
Glama
power-automate-desktop-mcp

power-automate-desktop-mcp

by Roy6T9

Run a desktop flow

run_flow

Starts a Power Automate Desktop flow on the local PC by flow name or ID and returns a run ID; call get_run to monitor whether it finishes.

Instructions

Starts a Power Automate Desktop flow on this PC and returns a run_id. Give flow_name or flow_id (not both). Power Automate may show an "are you sure?" pop-up that the person at the PC has to accept. Only one flow can run at a time. Starting is not the same as finishing: call get_run with the run_id to see how it went.

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

Input Schema

NameRequiredDescriptionDefault
inputsNoOptional. Values for the flow's input variables, by their external name. Text, number or true/false only.
flow_idNoThe flow ID (a GUID) from the flow's Properties.
flow_nameNoThe flow name exactly as shown in Power Automate.
environment_idNoOptional. The Power Platform environment ID. Leave out to use the one selected in the app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare readOnly=false, idempotent=false, openWorld=true, destructive=false. The description adds a real-world blocking behavior (a Power Automate "are you sure?" pop-up a human must accept), a concurrency constraint (only one flow at a time), and the async semantics (starting is not finishing). Those are non-obvious operational traits an agent could not infer from the structured data.

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 short sentences, front-loaded with the action and return value, then constraints, then the next step. No filler or restatement of the tool name; each sentence adds information the caller acts on.

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 fire-and-poll launcher with no output schema, the definition supplies the return value (run_id), the follow-up tool to poll, the human-in-the-loop pause, and the single-run limit. Nothing needed to invoke it correctly or to interpret the immediate result 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 schema already documents each parameter, making 3 the baseline. The description nonetheless adds a genuine semantic constraint absent from the schema: flow_name and flow_id are mutually exclusive alternatives (the schema marks zero required parameters and would otherwise permit both or neither).

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 ("Starts a Power Automate Desktop flow on this PC") plus the concrete outcome ("returns a run_id"). The phrasing distinguishes it cleanly from sibling read tools like list_flows, list_runs and get_run without needing the schemas.

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 states the identifier rule ("Give flow_name or flow_id (not both)") and routes to the correct sibling for the follow-up step ("call get_run with the run_id"). It also gives the when-not-to-expect-completion context, which is exactly the guidance an agent needs before calling.

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

Deploy Server

Other Tools