Debug, build, and manage Power Automate cloud flows with AI agents
Build and debug Microsoft Power Automate cloud flows with AI assistance.
Topics
gemini-cli-extension
Captured live from the server via tools/list.
tool_search
PREFER THIS over guessing tool names when picking from this server. Searches Flow Studio MCP tools by keyword, skill bundle, or explicit selector and returns full JSON schemas for matched tools so they can be called immediately. Call this whenever the user request maps to functionality you are not 100% sure about, OR when you want to load a whole skill bundle (build-flow, debug-flow, monitor-flow, discover, governance) at once. Query forms: (1) "skill:<name>" — fetch the full bundle (use list_skills first to see options); (2) "select:name1,name2" — fetch exact tools by name; (3) free-text keywords like "cancel run" or "trigger url" — ranked match against tool name + description. Non-billable.
Parameters (2)
querystringrequired
Search query. Forms: "select:name1,name2", "skill:<name>", or free-text keywords.
max_resultsinteger
Max tools to return for keyword queries (default 5). Ignored for select: and skill: queries.
list_skills
List all skill bundles — named groups of tools the agent typically uses together for a single user intent (build-flow, debug-flow, monitor-flow, discover, governance). Returns each skill's description and member tool names. Call this first when you are unsure which tools apply to a request; then call tool_search with query: "skill:<name>" to load the full bundle. Non-billable.
No parameters.
list_store_flows
[Requires Pro+ plan] List Power Automate flows from the Power Clarity cache. Optionally filter by governance flags (monitor, notification rules). Returns key fields including trigger URL, state, and run failure rate. Data is from the stored snapshot — not live from the Power Automate API.
Parameters (3)
monitorboolean
If set, only return flows where monitor equals this value.
rule_notify_onfailboolean
If set, filter flows by whether on-fail notifications are enabled.
rule_notify_onmissingdaysboolean
If set, filter flows by whether missing-days notifications are enabled.
get_store_flow
[Requires Pro+ plan] Get full details for a single Power Automate flow from the Power Clarity cache. Includes trigger URL, owners, state, run statistics, and governance metadata. Data is from the stored snapshot — not live from the Power Automate API.
Parameters (2)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
get_store_flow_trigger_url
[Requires Pro+ plan] [DEPRECATED — scheduled for removal] Get the trigger URL and trigger type for an HTTP-triggered flow from the Power Clarity cache. Read directly from the stored flow record — no live Power Automate API call is made. Use get_live_flow_trigger_url for a guaranteed-fresh URL.
Parameters (2)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
get_store_flow_runs
[Requires Pro+ plan] Get cached run history for a flow from the Power Clarity store. Defaults to the last 7 days. Returns startTime, endTime, status, duration (seconds), failedActions, and remediation hint per run. Data is from the stored snapshot — not live from the Power Automate API.
Parameters (6)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
startTimestring
ISO 8601 start of the time window (default: 7 days ago).
endTimestring
ISO 8601 end of the time window.
statusarray
Filter by status. Only the first value is used in the OData filter.
topnumber
Maximum number of run rows to return (default 5000).
get_store_flow_errors
[Requires Pro+ plan] [DEPRECATED — scheduled for removal] Get cached failed run history for a flow from the Power Clarity store (convenience wrapper around get_store_flow_runs with status=Failed). Returns failedActions and remediation hint per run to help diagnose issues. Data is from the stored snapshot — not live from the Power Automate API. Use get_live_flow_runs and filter by status=Failed instead.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
startTimestring
ISO 8601 start of the time window (default: 7 days ago).
get_store_flow_summary
[Requires Pro+ plan] Get aggregated run statistics for a flow from the Power Clarity cache: total runs, success count, failure count, success rate, fail rate, and average/max duration over a time window. Data is from the stored snapshot — not live from the Power Automate API.
Parameters (4)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
startTimestring
ISO 8601 start of the time window (default: 7 days ago).
endTimestring
ISO 8601 end of the time window.
set_store_flow_state
[Requires Pro+ plan] [DEPRECATED — scheduled for removal] Start or stop a Power Automate flow via the live Power Automate API, then persists the updated state back to the Power Clarity store. Uses impersonation via a cached service account that is either a flow owner or an environment admin. Returns the updated stored flow record. Use set_live_flow_state instead.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
statestringrequired
Desired state for the flow.
update_store_flow
[Requires Pro+ plan] Update governance/metadata fields on a flow record in the Power Clarity store (description, business impact, owner team, tags, monitor flag, notification settings, etc.). Only fields provided are updated (merge semantics). Writes to the cache — does not call the Power Automate API.
Parameters (18)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
descriptionstring
businessImpactstring
businessJustificationstring
businessValuestring
ownerTeamstring
ownerBusinessUnitstring
supportGroupstring
supportEmailstring
criticalboolean
monitorboolean
Enable/disable monitoring for this flow.
rule_notify_onfailboolean
Send notification when the flow fails.
rule_notify_onmissingdaysnumber
Send notification when flow has not run for this many days (0 = disabled).
rule_notify_emailstring
Comma-separated email addresses for notifications.
tagsstring
tierstring
securitystring
list_store_environments
[Requires Pro+ plan] List all Power Platform environments from the Power Clarity cache.
No parameters.
list_store_makers
[Requires Pro+ plan] List all makers (citizen developers / AAD users) from the Power Clarity cache.
No parameters.
get_store_maker
[Requires Pro+ plan] Get details for a single maker from the Power Clarity cache by their key (usually the AAD object ID). Includes flow/app counts and whether the account has been deleted.
Parameters (1)
makerKeystringrequired
Maker RowKey (AAD object ID of the user).
list_store_power_apps
[Requires Pro+ plan] List all Power Apps canvas apps from the Power Clarity cache.
No parameters.
list_store_connections
[Requires Pro+ plan] List all Power Platform connections from the Power Clarity cache.
No parameters.
get_live_flow_trigger_url
[DEPRECATED — scheduled for removal] Fetch the live trigger URL and method for an HTTP-triggered flow directly from the Power Automate API. Unlike get_flow_trigger_url this calls the PA listCallbackUrl endpoint so the URL is always current. Returns triggerName, triggerType, triggerKind, triggerMethod (e.g. POST) and triggerUrl. For non-HTTP triggers, triggerMethod and triggerUrl are null.
Parameters (2)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
get_live_flow_runs
Fetch live run history for a flow directly from the Power Automate API using impersonation — not the cached store. Returns run name, status, startTime, endTime, trigger name/code, and any top-level error.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
topnumber
Max runs to return. Paginates automatically. Default 30.
get_live_flow_run_error
Fetch error details for a specific flow run from the live Power Automate API. Lists every failed action with its error code and message to help diagnose what went wrong.
Parameters (4)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
runNamestringrequired
Run identifier (name field from get_live_flow_runs).
topnumber
Max actions to return. Paginates automatically. Omit for all.
get_live_flow_run_action_outputs
Download inputs and outputs for actions in a flow run via SAS blob links from the live Power Automate API. Without actionName: returns top-level actions (optionally filtered by name). With actionName: calls the PA repetitions endpoint to return every execution of that action across all foreach iterations. Each repetition record includes repetitionIndexes (scope name + itemIndex per nesting level), status, error, and the resolved inputs/outputs blobs. Use iterationIndex to pin to a single iteration (matched against the innermost repetitionIndexes[].itemIndex); omit it to return all repetitions.
Parameters (6)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
runNamestringrequired
Run identifier (name field from get_live_flow_runs).
actionNamestring
Action name. Without iterationIndex: returns all repetitions of this action across every foreach iteration. With iterationIndex: returns the single repetition matching that iteration. Omit entirely for top-level action list.
iterationIndexnumber
Zero-based foreach iteration index. Matched against the innermost repetitionIndexes[].itemIndex in the PA repetition record. Only meaningful when actionName is also set.
topnumber
Max actions or repetitions to return. Paginates automatically. Omit for all.
trigger_live_flow
Trigger an HTTP-triggered Power Automate flow by calling its live callback URL. Fetches the current signed trigger URL via the PA API (listCallbackUrl) then POSTs the provided body to it. If the flow trigger requires Azure Active Directory authentication, the impersonated Bearer token is automatically included — no extra configuration needed. Returns the HTTP status, response body, requiresAadAuth flag, and authType. Only works for flows with a Request (HTTP) trigger type.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
bodyobject
JSON body to POST to the trigger URL. Omit for flows that expect an empty body.
cancel_live_flow_run
Cancel a currently running Power Automate flow run via the live PA API. Use after get_live_flow_runs to obtain the run name. Only runs with status "Running" can be cancelled.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
runNamestringrequired
Run identifier (name field from get_live_flow_runs).
resubmit_live_flow_run
Resubmit a failed or cancelled Power Automate flow run via the live PA API, re-using the original trigger payload. Discovers the trigger name from the flow definition automatically — no trigger name parameter needed.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
runNamestringrequired
Run identifier (name field from get_live_flow_runs).
set_live_flow_state
Start or stop a Power Automate flow via the live Power Automate API using an impersonated service account. Does not require a Power Clarity workspace — works for any flow the impersonated account can access. Reads the current flow state first and only issues the start/stop call if a state change is actually needed. Returns the flow name, environment, requested state, and the actual state reported by the PA API after the operation.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
statestringrequired
Desired state for the flow.
get_live_flow
Fetch the full native Power Automate flow JSON from the PA API, including the complete flow definition (triggers, actions, parameters, outputs). Returns the raw properties object exactly as the PA API returns it. Use this to inspect the full definition before calling update_live_flow with a modified definition.
Parameters (2)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
update_live_flow
Update or create a Power Automate flow via the live PA API. If flowName is omitted or blank, a new flow is created (PUT with a generated GUID) using an environment admin account — definition and displayName are required in that case. If flowName is provided, the existing flow is PATCHed: displayName and/or definition and/or connectionReferences are updated. Mirrors displayName changes into the Power Clarity cache (gFlows). To modify a definition: call get_live_flow, mutate properties.definition (including its description), pass it here. The flow description lives at definition.description and is required; we append " #flowstudio-mcp" to it for usage tracking.
Parameters (5)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestring
Name (ID) of the flow to update. Omit or leave blank to create a new flow.
displayNamestring
Display name for the flow. Required when creating.
definitionobject
Full flow definition as a JSON object (triggers + actions + parameters + outputs + description). MUST be a JSON object — strings are rejected. Do not JSON.stringify the definition; pass the parsed object directly. Required when creating. For updates, obtain from get_live_flow (properties.definition), modify it, then pass the modified object here. definition.description is required (a short note about what changed); when updating, if you omit it we reuse the flow's existing description.
connectionReferencesobject
Connection references map — keyed by logical name (e.g. shared_sharepointonline), each value is { connectionName, id }. Goes into properties.connectionReferences on the PA API call.
get_live_flow_http_schema
[DEPRECATED — scheduled for removal] Inspect the HTTP interface of a Power Automate Request-triggered flow: returns the JSON schema the trigger URL expects as the POST body, any required headers, the HTTP method, and the JSON schema(s) defined on any Response action(s) in the flow. All information is read from the live flow definition via the PA API — no test call is made to the trigger URL. Use this before calling trigger_live_flow to understand what body to send.
Parameters (2)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow.
list_live_environments
List all Power Platform environments directly from the Power Automate API — not the cached store. Returns id, displayName, sku, location, and state for each environment visible to the impersonated service account.
Parameters (1)
topnumber
Max environments to return. Paginates automatically. Omit for all.
list_live_flows
List Power Automate flows in an environment. Returns id, displayName, state, triggerType, and lastModifiedTime for each flow. mode=owner (default): flows owned by AND shared with the impersonated account (personal + team), with full definitions. mode=admin: all flows in the environment (requires an admin account). If search is provided, results are filtered to flows whose displayName contains the search text. For large environments pagination is time-bounded — if nextLink is returned, pass it as continuationUrl to retrieve the next batch.
Parameters (6)
environmentNamestringrequired
Name of the Power Platform environment.
modestring
owner (default): user-scoped — owned + shared-with-me flows (personal + team), with full definitions. admin: admin-scoped endpoint, all flows.
topnumber
Max flows to return. Paginates automatically. Omit for all.
searchstring
Optional case-insensitive filter applied to flow displayName.
continuationUrlstring
nextLink value returned by a previous call. Pass to resume pagination from where the last call stopped. Must match the same mode as the original call.
timeoutSecondsnumber
Stop collecting pages after this many seconds and return a nextLink for the next batch. Default 25. Max 55.
list_live_connections
List Power Platform connections in an environment directly from the Power Automate API — not the cached store. Returns id, displayName, connectorName, environment, createdBy (full object), authenticatedUser, statuses, overallStatus, createdTime, expirationTime, and connectionParameters for each connection. Pass search=<term> to narrow the list and receive a paste-ready connectionReferenceTemplate plus action-side hostTemplate per connection — drop these into update_live_flow's connectionReferences and inputs.host without further edits.
Parameters (3)
environmentNamestring
Name of the Power Platform environment. Omit to list connections across all environments.
topnumber
Max connections to return. Paginates automatically. Omit for all.
searchstring
Optional case-insensitive substring filter applied to id, displayName, connectorName, and accountName. Adds connectionReferenceTemplate + hostTemplate to each returned connection.
describe_live_connector
Describe a live Power Platform connector/API and its operations. Aligned with Canvas MCP describe_api. Use mode=summary (default) to get a compact operation catalog. Use operationId to describe one operation, including inputs, outputs, dynamic parameter metadata, nextTool hints to call get_live_dynamic_options, and an authored hint + canonical example shape (when one exists) to copy into update_live_flow. Use search without connectorName/apiName to search operations across connectors and get connection-aware suggestions. Use mode=full only when raw OpenAPI connector metadata is required.
Parameters (9)
environmentNamestringrequired
Name of the Power Platform environment.
connectorNamestring
Connector logical name, for example shared_teams. Either connectorName/apiName is required, unless search is provided for cross-connector operation search.
apiNamestring
Alias for connectorName, matching Canvas MCP describe_api naming.
modestring
summary (default): compact operation catalog. full: raw OpenAPI metadata.
operationIdstring
Optional operation ID to describe with expanded inputs and outputs.
typestring
Operation usage to include in summary mode. Default Action.
searchstring
Optional operation search text. With connectorName, filters that connector summary. Without connectorName, searches operations across connectors.
topnumber
Max operations to return in connector summary mode, or max top search results to show in cross-connector search. Default 250 for summary, 10 for search display.
variantstring
When an operation has multiple authored variants (e.g. shared_teams/PostMessageToConversation has channel/groupchat/flowbot_chat), pass a specific variantKey to get that variant's hint and exampleDefinition. Omit to receive a hint listing the available variants.
get_live_dynamic_options
Resolve live dynamic dropdown/list options for a connector operation parameter. Use this when describe_live_connector returns a dynamic parameter with nextTool=get_live_dynamic_options. Works with x-ms-dynamic-list and x-ms-dynamic-values metadata, for example Teams team/channel IDs, SharePoint site/list IDs, or other connector-specific selectable values.
Parameters (8)
environmentNamestringrequired
Name of the Power Platform environment.
connectorNamestring
Connector logical name, for example shared_teams.
apiNamestring
Alias for connectorName.
operationIdstring
Operation ID that owns the dynamic parameter.
parameterNamestringrequired
Dynamic parameter name, for example groupId or channelId.
connectionNamestringrequired
Required connector connection name/id, for example shared-teams-{guid}. Choose the connection that the flow action should run as. Use list_live_connections to find candidates.
parametersobject
Resolved dependent parameter values, for example { "groupId": "<team id>" }.
dynamicMetadataobjectrequired
x-ms-dynamic-list or x-ms-dynamic-values metadata from describe_live_connector.
get_live_dynamic_properties
Resolve live dynamic schema/properties for a connector operation parameter. Use this when describe_live_connector returns a dynamicProperties entry with nextTool=get_live_dynamic_properties. Works with x-ms-dynamic-properties and x-ms-dynamic-schema metadata, for example SharePoint item fields after resolving site/list/view parameters.
Parameters (12)
environmentNamestringrequired
Name of the Power Platform environment.
connectorNamestring
Connector logical name, for example shared_sharepointonline.
apiNamestring
Alias for connectorName.
operationIdstring
Operation ID that owns the dynamic parameter.
parameterNamestringrequired
Dynamic properties parameter name, for example item or body.
connectionNamestringrequired
Required connector connection name/id. Use list_live_connections to find candidates.
parametersobject
Resolved dependent parameter values, for example { "dataset": "<site url>", "table": "<list id>" }.
dynamicMetadataobjectrequired
x-ms-dynamic-properties or x-ms-dynamic-schema metadata from describe_live_connector.
contextParameterAliasstring
Alias for returned property paths. Defaults to the parameter alias from metadata, or parameterName.
locationstring
Whether to resolve input or output dynamic properties. Default input.
propertyNamestring
Optional property name/title/alias to return just one property. Useful for a progressive follow-up with includeRaw=true after inspecting the compact schema.
includeRawboolean
Include raw schema/property definitions. With propertyName, includes raw only for the matched property. Without propertyName, includes the full raw schema. Default false.
add_live_flow_to_solution
Migrate a non-solution Power Automate flow into a solution via the admin migrateFlows API. If the flow is already part of a solution, returns an error message without attempting migration. solutionId is optional — omit to migrate into the default solution.
Parameters (3)
environmentNamestringrequired
Name of the Power Platform environment.
flowNamestringrequired
Name (ID) of the flow to migrate into the solution.
solutionIdstring
Target solution ID (Dataverse solutionid GUID). Omit for the default solution. Discover IDs via get_live_dynamic_options on shared_commondataserviceforapps/ListRecords with entityName "solutions" (value-path solutionid, value-title friendlyname); needs a Dataverse connection in the env.
FlowStudio MCP — Power Automate Skills for AI Agents
Give your AI agent the same visibility you have in the Power Automate portal — plus a bit more.
The Graph API only returns top-level run status — agents can't see action inputs,
loop iterations, or nested failures. Flow Studio MCP exposes all of it.
You can click through the portal and find the root cause. Your agent can't — unless it has MCP.
When you need this
Your agent can see that a flow failed, but not why — Graph API only returns status codes
You want your agent to see action-level inputs and outputs, like you can in the portal
A loop has hundreds of iterations and some produced bad output — in the portal you'd click through each one, but the agent can scan all iteration inputs and outputs at once
You want to check flow health, failure rates, and maker activity across your tenant without opening the admin center
You need to classify flows, detect orphaned resources, or audit connectors at scale — without installing the CoE Starter Kit
You're tired of being the middle-man between your agent and the portal
Graph API vs Flow Studio MCP
The core difference: Graph API gives your agent run status. MCP gives your agent the inputs and outputs of every action.
The first three skills use live Power Automate API calls. The monitoring and governance
skills use the cached store — a daily snapshot with aggregated stats, remediation hints,
and governance metadata. Requires a FlowStudio for Teams or MCP Pro+ subscription for store tools.
These are from real production investigations, not demos.
Expression error in child flow —
contains(string(...)) crashed on a nested property. Agent traced through
parent flow, into child, through loop iterations, and found the failing input.
Portal showed "ExpressionEvaluationFailed" with no context.
Data entry, not a flow bug —
User reported two "bugs" back to back. Agent proved both were data entry
errors (missing comma in email, single address in CC field). Flow was correct.
Diagnosed in seconds.
Null value crashes child flow —
split(Name, ', ') crashed when 38% of records had null Names. Agent traced
parent to child to loop to action, found the root cause, and deployed a fix
via update_live_flow.