SKILL.md
Power Automate Monitoring with FlowStudio MCP
Monitor flow health, track failure rates, and inventory tenant assets through the FlowStudio MCP cached store — fast reads, no PA API rate limits, and enriched with governance metadata and remediation hints.
⚠️ Pro+ subscription required. This skill calls
store_*tools that
only work for FlowStudio for Teams or MCP Pro+ subscribers.
If the user does not have Pro+ access: the firststore_*tool call
will return a 403/404 error. When that happens:
1. STOP calling store tools
2. Tell the user this feature requires a Pro+ subscription
3. Link them to https://mcp.flowstudio.app/pricing
4. If their question can be answered with live tools (e.g. "list flows in
one environment"), offer to use theflowstudio-power-automate-mcpskill instead
Discovery: load tool schemas viatool_searchrather thantools/list—
call withquery: "select:liststoreflows,getstoreflow_summary"for the
common monitoring tools, or load the full set withquery: "skill:governance"
(the server's governance bundle covers most monitoring reads too — this skill
andflowstudio-power-automate-governanceshare the underlying tool family). This skill
covers response shapes, behavioral notes, and workflow patterns — thingstool_searchcannot tell you. If this document disagrees with a real API
response, the API wins.
How Monitoring Works
Flow Studio scans the Power Automate API daily for each subscriber and caches the results. There are two levels:
- All flows get metadata scanned: definition, connections, owners, trigger
type, and aggregate run statistics (runPeriodTotal, runPeriodFailRate, etc.). Environments, apps, connections, and makers are also scanned.
- Monitored flows (
monitor: true) additionally get per-run detail:
individual run records with status, duration, failed action names, and remediation hints. This is what populates getstoreflowruns and getstoreflowsummary.
Data freshness: Check the scanned field on getstoreflow to see when a flow was last scanned. If stale, the scanning pipeline may not be running.
Enabling monitoring: Set monitor: true via updatestoreflow or the Flow Studio for Teams app (how to select flows).
Designating critical flows: Use updatestoreflow with critical=true on business-critical flows. This enables the governance skill's notification rule management to auto-configure failure alerts on critical flows.
Tools
| Tool | Purpose |
|---|---|
liststoreflows |
List flows with failure rates and monitoring filters |
getstoreflow |
Full cached record: run stats, owners, tier, connections, definition (triggerUrl field included) |
getstoreflow_summary |
Aggregated run stats: success/fail rate, avg/max duration |
getstoreflow_runs |
Per-run history with duration, status, failed actions, remediation (filter status="Failed" for errors-only view) |
updatestoreflow |
Set monitor flag, notification rules, tags, governance metadata |
liststoreenvironments |
All Power Platform environments |
liststoreconnections |
All connections |
liststoremakers |
All makers (citizen developers) |
getstoremaker |
Maker detail: flow/app counts, licenses, account status |
liststorepower_apps |
All Power Apps canvas apps |
For start/stop, use
setliveflow_statefrom themonitor-flowbundle
(toolsearch query: "select:setliveflowstate") — the cache resyncs on
the next scan. The previoussetstoreflow_stateconvenience wrapper is
deprecated.
Store vs Live
| Question | Use Store | Use Live |
|---|---|---|
| How many flows are failing? | liststoreflows |
— |
| What's the fail rate over 30 days? | getstoreflow_summary |
— |
| Show error history for a flow | getstoreflow_runs (filter status="Failed") |
— |
| Who built this flow? | getstoreflow → parse owners |
— |
| Read the full flow definition | getstoreflow has it (JSON string) |
getliveflow (structured) |
| Inspect action inputs/outputs from a run | — | getliveflowrunaction_outputs |
| Resubmit a failed run | — | resubmitliveflow_run |
Store tools answer "what happened?" and "how healthy is it?"
Live tools answer "what exactly went wrong?" and "fix it now."
If
getstoreflowrunsorgetstoreflowsummaryreturn empty results,
check: (1) ismonitor: trueon the flow? and (2) is thescannedfield
recent? Usegetstoreflowto verify both.
Response Shapes
liststoreflows
Direct array. Filters: monitor (bool), rulenotifyonfail (bool), rulenotifyonmissingdays (bool).
[
{
"id": "Default-<envGuid>.<flowGuid>",
"displayName": "Stripe subscription updated",
"state": "Started",
"triggerType": "Request",
"triggerUrl": "https://...",
"tags": ["#operations", "#sensitive"],
"environmentName": "Default-aaaaaaaa-...",
"monitor": true,
"runPeriodFailRate": 0.012,
"runPeriodTotal": 82,
"createdTime": "2025-06-24T01:20:53Z",
"lastModifiedTime": "2025-06-24T03:51:03Z"
}
]
idformat:Default-<envGuid>.<flowGuid>. Split on first.to getenvironmentNameandflowName.triggerUrlandtagsare optional. Some entries are sparse (justid+monitor) — skip entries withoutdisplayName.
Tags onliststoreflowsare auto-extracted from the flow'sdescription
field (maker hashtags like#operations). Tags written viaupdatestoreflow(tags=...)are stored separately and only visible ongetstoreflow— they do NOT appear in the list response.
getstoreflow
Full cached record. Key fields:
| Category | Fields |
|---|---|
| Identity | name, displayName, environmentName, state, triggerType, triggerKind, tier, sharingType |
| Run stats | runPeriodTotal, runPeriodFails, runPeriodSuccess, runPeriodFailRate, runPeriodSuccessRate, runPeriodDurationAverage/Max/Min (milliseconds), runTotal, runFails, runFirst, runLast, runToday |
| Governance | monitor (bool), rulenotifyonfail (bool), rulenotifyonmissingdays (number), rulenotifyemail (string), lognotifyonfail (ISO), description, tags |
| Freshness | scanned (ISO), nextScan (ISO) |
| Lifecycle | deleted (bool), deletedTime (ISO) |
| JSON strings | actions, connections, owners, complexity, definition, createdBy, security, triggers, referencedResources, runError — all require json.loads() to parse |
Duration fields (
runPeriodDurationAverage,Max,Min) are in
milliseconds. Divide by 1000 for seconds.runErrorcontains the last run error as a JSON string. Parse it:json.loads(record["runError"])— returns{}when no error.
getstoreflow_summary
Aggregated stats over a time window (default: last 7 days).
{
"flowKey": "Default-<envGuid>.<flowGuid>",
"windowStart": null,
"windowEnd": null,
"totalRuns": 82,
"successRuns": 81,
"failRuns": 1,
"successRate": 0.988,
"failRate": 0.012,
"averageDurationSeconds": 2.877,
"maxDurationSeconds": 9.433,
"firstFailRunRemediation": null,
"firstFailRunUrl": null
}
Returns all zeros when no run data exists for this flow in the window.
UsestartTimeandendTime(ISO 8601) parameters to change the window.
getstoreflow_runs
Direct array of cached run records. Parameters: startTime, endTime, status (array — pass ["Failed"] for an errors-only view, ["Succeeded"], or omit for all).
Returns
[]when no run data exists in the window.
Trigger URL
Read the triggerUrl field directly from getstoreflow (cached) or getliveflow (live). It is null for non-HTTP triggers.
Starting / stopping a flow
Use setliveflowstate from the monitor-flow server bundle. The cache catches up on the next daily scan; if you need cache freshness sooner, call getlive_flow after the state change to confirm and let the next scan sync.
updatestoreflow
Updates governance metadata. Only provided fields are updated (merge). Returns the full updated record (same shape as getstoreflow).
Settable fields: monitor (bool), rulenotifyonfail (bool), rulenotifyonmissingdays (number, 0=disabled), rulenotifyemail (comma-separated), description, tags, businessImpact, businessJustification, businessValue, ownerTeam, ownerBusinessUnit, supportGroup, supportEmail, critical (bool), tier, security.
liststoreenvironments
Direct array.
[
{
"id": "Default-aaaaaaaa-...",
"displayName": "Flow Studio (default)",
"sku": "Default",
"type": "NotSpecified",
"location": "australia",
"isDefault": true,
"isAdmin": true,
"isManagedEnvironment": false,
"createdTime": "2017-01-18T01:06:46Z"
}
]
skuvalues:Default,Production,Developer,Sandbox,Teams.
liststoreconnections
Direct array. Can be very large (1500+ items).
[
{
"id": "<environmentId>.<connectionId>",
"displayName": "[email protected]",
"createdBy": "{\"id\":\"...\",\"displayName\":\"...\",\"email\":\"...\"}",
"environmentName": "...",
"statuses": "[{\"status\":\"Connected\"}]"
}
]
createdByandstatusesare JSON strings — parse withjson.loads().
liststoremakers
Direct array.
[
{
"id": "09dbe02f-...",
"displayName": "Sample Maker",
"mail": "[email protected]",
"deleted": false,
"ownerFlowCount": 199,
"ownerAppCount": 209,
"userIsServicePrinciple": false
}
]
Deleted makers have
deleted: trueand nodisplayName/
getstoremaker
Full maker record. Key fields: displayName, mail, userPrincipalName, ownerFlowCount, ownerAppCount, accountEnabled, deleted, country, firstFlow, firstFlowCreatedTime, lastFlowCreatedTime, firstPowerApp, lastPowerAppCreatedTime, licenses (JSON string of M365 SKUs).
liststorepower_apps
Direct array.
[
{
"id": "<environmentId>.<appId>",
"displayName": "My App",
"environmentName": "...",
"ownerId": "09dbe02f-...",
"ownerName": "Catherine Han",
"appType": "Canvas",
"sharedUsersCount": 0,
"createdTime": "2023-08-18T01:06:22Z",
"lastModifiedTime": "2023-08-18T01:06:22Z",
"lastPublishTime": "2023-08-18T01:06:22Z"
}
]
Common Workflows
Find unhealthy flows
1. list_store_flows
2. Filter where runPeriodFailRate > 0.1 and runPeriodTotal >= 5
3. Sort by runPeriodFailRate descending
4. For each: get_store_flow for full detail
Check a specific flow's health
1. get_store_flow → check scanned (freshness), runPeriodFailRate, runPeriodTotal
2. get_store_flow_summary → aggregated stats with optional time window
3. get_store_flow_runs(status=["Failed"]) → per-run failure detail with remediation hints
4. If deeper diagnosis needed → switch to live tools:
get_live_flow_runs → get_live_flow_run_action_outputs
Enable monitoring on a flow
1. update_store_flow with monitor=true
2. Optionally set rule_notify_onfail=true, rule_notify_email="[email protected]"
3. Run data will appear after the next daily scan
Daily health check
1. list_store_flows
2. Flag flows with runPeriodFailRate > 0.2 and runPeriodTotal >= 3
3. Flag monitored flows with state="Stopped" (may indicate auto-suspension)
4. For critical failures → get_store_flow_runs(status=["Failed"]) for remediation hints
Maker audit
1. list_store_makers
2. Identify deleted accounts still owning flows (deleted=true, ownerFlowCount > 0)
3. get_store_maker for full detail on specific users
Inventory
1. list_store_environments → environment count, SKUs, locations
2. list_store_flows → flow count by state, trigger type, fail rate
3. list_store_power_apps → app count, owners, sharing
4. list_store_connections → connection count per environment
Related Skills
flowstudio-power-automate-mcp— Foundation skill: connection setup, MCP helper, tool discoveryflowstudio-power-automate-debug— Deep diagnosis with action-level inputs/outputs (live API)flowstudio-power-automate-build— Build and deploy flow definitionsflowstudio-power-automate-governance— Governance metadata, tagging, notification rules, CoE patterns