power-automate-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PA_ENV_ID | No | Optional. The Power Platform environment ID. Defaults to Default-<PA_TENANT_ID> if not set. | |
| PA_CLIENT_ID | Yes | The Application (client) ID from the Azure app registration. | |
| PA_TENANT_ID | Yes | The Directory (tenant) ID from the Azure app registration. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_flowsA | List flows in the environment, newest change first. state filters client-side on 'Started' or 'Stopped'; leave empty for all. Returns flow_id, display_name, state, modified. Use flow_id with every other tool. |
| get_flowA | Get one flow with its full definition - the JSON behind the designer's Code view. Returns the trigger names, action names, and the complete definition dict. Call this before update_flow_definition: the API has no partial update, so you must send the whole definition back, modified. |
| create_flowA | Create a flow from a workflow-definition dict.
TWO RULES LEARNED THE HARD WAY:
If the environment has no Connected connection for a connector the definition
uses, the result carries Never inline a secret in a definition - it is stored in plaintext on the flow artifact. Use a Power Platform environment variable or Key Vault reference. Look up connector operationIds and parameter keys rather than guessing them.
Guessing produces a flow that saves fine and fails at runtime. With the Microsoft
Learn MCP server connected: microsoft_docs_search, then microsoft_docs_fetch on
https://learn.microsoft.com/connectors// (large, so search first).
That page marks deprecated operations. Where a parameter is typed |
| update_flow_definitionA | Replace a flow's definition. Send the COMPLETE definition - there is no patch semantics. Standard use: get_flow -> edit the returned
WHICH FLOWS THIS REACHES, corrected 2026-11-03. The old note here said any flow
bound in the maker portal was out of reach. Measured 2026-07-28 on a flow built in
My flows in the portal: its references come back with source "Embedded", and a PATCH carrying
them succeeds. Keep the action hosts on |
| bind_connectionA | Bind an existing connection to a flow and start it. The missing step of create_flow. This is the tool that makes headless connector-flow creation actually work.
THE CONNECTION MUST ALREADY EXIST in the environment. No API reachable with a
Flow token can create and authenticate a brand new connection - that is a portal
action. If none is found this returns status "not_found" rather than failing, with
A flow with several connectors (say Dataverse + Outlook) is bound in ONE call: name any one of them, and the tool resolves the others by the same rule and saves them together, because the API rejects a save that leaves any connector action unbound. If one is missing it binds nothing and returns status "incomplete", listing each unresolved connector with a create_url. Existing bindings are merged, never dropped. Does NOT work on solution flows: their connections are Dataverse connection references, which cannot be minted here. Bind those in the portal, or edit the stored definition with update_solution_flow_definition in extras.py. |
| run_flowA | Trigger a flow now, without waiting for its schedule. You must own the flow.
Note for Request/HTTP-trigger flows: this management endpoint does NOT forward a body, so @triggerBody() evaluates to null here. Call the flow's real HTTP URL if the flow depends on its payload. Returns immediately - the run is asynchronous. Poll list_runs for the outcome. |
| list_runsA | List recent runs for a flow, newest first. status filter: 'Succeeded', 'Failed', 'Cancelled', 'Running'. Empty for all. Returns run_id, status, start_time, end_time. Feed a failed run_id to explain_run. |
| explain_runA | Diagnose a run: which action failed, with what error, on what inputs. This is the tool the portal makes you click twelve times to replicate, and the one a generic HTTP wrapper cannot give you, for two reasons:
Returns: status overall run status failed_actions [{name, error, inputs}] - resolved error text, not null succeeded [{name, outputs}] - upstream context, in execution order hint where to look first If failed_actions is empty and status is Failed, the failure was in the trigger, not the body - check the trigger's condition and inputs. |
| compare_runsA | Diff a failed run against a working one to find what changed. Use this when explain_run gives you an error that is technically clear but does not tell you WHY this run differed - intermittent failures, "it worked yesterday", data-dependent bugs. The portal makes you open two runs in two tabs and eyeball them side by side.
Returns: diverged_at first action whose status differs - start here status_changes [{action, baseline, failed}] every action that behaved differently output_changes [{action, baseline, failed}] actions that succeeded in BOTH runs but produced different outputs. This is usually the real cause. only_in_failed / only_in_baseline actions that ran in one and not the other, which means a condition or branch evaluated differently If output_changes is empty and status_changes shows the same action failing both times, the failure is deterministic and the fix is in the definition, not the data. |
| analyze_flow_healthA | Analyse a flow's recent run history: reliability, failure patterns, duration. Answers the questions a single run cannot: is this flow flaky or broken? Which action fails most? Is it getting slower? The portal's analytics page shows counts but will not tell you WHICH action is responsible or group failures by cause.
Returns: total / succeeded / failed / cancelled / running failure_rate 0.0 to 1.0 over completed runs only duration_seconds {mean, p95, max} across successful runs failing_actions [{action, count, sample_error}] ranked, from the sampled failures verdict plain-language read of the numbers A single action accounting for nearly all failures means a targeted fix. Failures spread across many actions usually means the trigger data or a connection, not the logic. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes: list/get/create/update, run management, and diagnostics are well separated. The one soft overlap is update_flow_definition vs bind_connection, since both PATCH a definition and connection references, but the descriptions explicitly explain when to use each, keeping confusion limited.
All names are snake_case and follow a predictable verb_noun pattern (list_flows, get_flow, create_flow, update_flow_definition, run_flow, list_runs, explain_run, compare_runs, analyze_flow_health). No mixed conventions or vague verbs.
At 10 tools the surface is well scoped for a flow-management server: CRUD, execution, and a strong diagnostic suite. Each tool earns its place without bloat.
Core lifecycle is covered: create, read, update, run, and rich run diagnostics. However there is no delete_flow, no explicit start/stop or enable/disable tool (bind_connection only implicitly starts), and no cancel_run, which are notable gaps for an agent managing flows end to end.