FlowStudio Power Automate Monitoring

FlowStudio Power Automate Monitoring

Monitors Power Automate across a tenant using the FlowStudio MCP cached store: failure rates, run health, maker inventory and compliance reports.

Skill files1 file
SKILL.md392 lines
1
---
2
name: flowstudio-power-automate-monitoring
3
description: >-
4
Pro+ subscription required. Tenant-wide Power Automate monitoring using the
5
FlowStudio MCP cached store: failure rates, run-health trends, maker/app
6
inventory, inactive owners, and compliance/health reports. Use only for
7
aggregated tenant views. For one environment, one flow, run control, or
8
root-cause debugging, use flowstudio-power-automate-mcp, flowstudio-power-automate-debug, or the
9
server monitor-flow bundle. Requires MCP Pro+.
10
---
11
12
# Power Automate Monitoring with FlowStudio MCP
13
14
Monitor flow health, track failure rates, and inventory tenant assets through
15
the FlowStudio MCP **cached store** — fast reads, no PA API rate limits, and
16
enriched with governance metadata and remediation hints.
17
18
> **⚠️ Pro+ subscription required.** This skill calls `store_*` tools that
19
> only work for MCP Pro+ subscribers, and not in Microsoft 365 Copilot (Copilot Chat or Cowork),
20
> even on Pro+.
21
>
22
> **If the store tools are missing or refused:** a `store_*` tool call returns the
23
> error "This tool requires a Flow Studio MCP Pro+ plan" (in Microsoft 365
24
> Copilot it says the store isn't available over single sign-on). When that happens:
25
> 1. STOP calling store tools
26
> 2. If it mentions single sign-on, or you are in Microsoft 365 Copilot: tell the
27
> user store tools don't work there on any plan; with Pro+ they work from an
28
> agent connected with an API key or the `https://mcp.flowstudio.app/mcp/oauth` sign-in
29
> 3. Otherwise, tell the user this feature requires a Pro+ subscription and link
30
> them to https://mcp.flowstudio.app/pricing
31
> 4. If their question can be answered with live tools (e.g. "list flows in
32
> one environment"), offer to use the `flowstudio-power-automate-mcp` skill instead
33
>
34
> **Discovery:** load tool schemas via `tool_search` rather than `tools/list` —
35
> `query: "select:list_store_flows,get_store_flow,get_store_flow_summary,get_store_flow_runs"`
36
> covers most monitoring reads. `skill:governance` adds `update_store_flow` and
37
> the maker tools; `list_store_environments`, `list_store_connections` and
38
> `list_store_power_apps` are in no bundle, so load them with `select:`. Without
39
> Pro+, or in Microsoft 365 Copilot, `tool_search` returns none of the store tools. This skill and
40
> `flowstudio-power-automate-governance` share the underlying tool family. This skill covers
41
> response shapes, behavioral notes, and workflow patterns — things `tool_search`
42
> cannot tell you. If this document disagrees with a real API response, the API wins.
43
44
---
45
46
## How Monitoring Works
47
48
FlowStudio scans the Power Automate API daily for each subscriber and caches
49
the results. There are two levels:
50
51
- **All flows** get metadata scanned: definition, connections, owners, trigger
52
type, and aggregate run statistics (`runPeriodTotal`, `runPeriodFailRate`,
53
etc.). Environments, apps, connections, and makers are also scanned.
54
- **Monitored flows** (`monitor: true`) additionally get per-run detail:
55
individual run records with status, duration, failed action names, and
56
remediation hints. This is what populates `get_store_flow_runs` and
57
`get_store_flow_summary`.
58
59
**Data freshness:** Check the `scanned` field on `get_store_flow` to see when
60
a flow was last scanned. If stale, the scanning pipeline may not be running.
61
62
**Enabling monitoring:** Set `monitor: true` via `update_store_flow` or the
63
FlowStudio for Teams app
64
([how to select flows](https://learn.flowstudio.app/teams-monitoring)).
65
66
**Designating critical flows:** Use `update_store_flow` with `critical=true`
67
on business-critical flows. This enables the governance skill's notification
68
rule management to auto-configure failure alerts on critical flows.
69
70
---
71
72
## Tools
73
74
| Tool | Purpose |
75
|---|---|
76
| `list_store_flows` | List flows with failure rates and monitoring filters |
77
| `get_store_flow` | Full cached record: run stats, owners, tier, connections, definition (`triggerUrl` field included) |
78
| `get_store_flow_summary` | Aggregated run stats: success/fail rate, avg/max duration |
79
| `get_store_flow_runs` | Per-run history with duration, status, failed actions, remediation (filter `status="Failed"` for errors-only view) |
80
| `update_store_flow` | Set monitor flag, notification rules, tags, governance metadata |
81
| `list_store_environments` | All Power Platform environments |
82
| `list_store_connections` | All connections |
83
| `list_store_makers` | All makers (citizen developers) |
84
| `get_store_maker` | Maker detail: flow/app counts, licenses, account status |
85
| `list_store_power_apps` | All Power Apps canvas apps |
86
87
> For start/stop, use `set_live_flow_state` from the `monitor-flow` bundle
88
> (`tool_search query: "select:set_live_flow_state"`) — the cache resyncs on
89
> the next scan. The previous `set_store_flow_state` convenience wrapper is
90
> deprecated.
91
92
---
93
94
## Store vs Live
95
96
| Question | Use Store | Use Live |
97
|---|---|---|
98
| How many flows are failing? | `list_store_flows` | — |
99
| What's the fail rate over 30 days? | `get_store_flow_summary` | — |
100
| Show error history for a flow | `get_store_flow_runs` (filter `status="Failed"`) | — |
101
| Who built this flow? | `get_store_flow` → parse `owners` | — |
102
| Read the full flow definition | `get_store_flow` has it (JSON string) | `get_live_flow` (structured) |
103
| Inspect action inputs/outputs from a run | — | `get_live_flow_run_action_outputs` |
104
| Resubmit a failed run | — | `resubmit_live_flow_run` |
105
106
> Store tools answer "what happened?" and "how healthy is it?"
107
> Live tools answer "what exactly went wrong?" and "fix it now."
108
109
> If `get_store_flow_runs` or `get_store_flow_summary` return empty results,
110
> check: (1) is `monitor: true` on the flow? and (2) is the `scanned` field
111
> recent? Use `get_store_flow` to verify both. If both are fine, (3) call
112
> `get_live_flow_runs` with no filter: `Failed` in `triggerChecks.byStatus`
113
> means the trigger is erroring and no run is recorded.
114
115
---
116
117
## Response Shapes
118
119
### `list_store_flows`
120
121
Direct array. Filters: `monitor` (bool), `rule_notify_onfail` (bool),
122
`rule_notify_onmissingdays` (bool: true = more than 0 days set). `monitor` and
123
`rule_notify_onfail` take only `true` or `false`; anything else is refused with
124
"Nothing was read".
125
126
```json
127
[
128
{
129
"id": "Default-<envGuid>.<flowGuid>",
130
"displayName": "Stripe subscription updated",
131
"state": "Started",
132
"triggerType": "Request",
133
"triggerUrl": "https://...",
134
"tags": ["#operations", "#sensitive"],
135
"environmentName": "Default-aaaaaaaa-...",
136
"monitor": true,
137
"runPeriodFailRate": 0.012,
138
"runPeriodTotal": 82,
139
"createdTime": "2025-06-24T01:20:53Z",
140
"lastModifiedTime": "2025-06-24T03:51:03Z"
141
}
142
]
143
```
144
145
> `id` format: `Default-<envGuid>.<flowGuid>`. Split on first `.` to get
146
> `environmentName` and `flowName`.
147
>
148
> `triggerUrl` and `tags` are optional. Some entries are sparse (just `id` +
149
> `monitor`) — skip entries without `displayName`.
150
>
151
> Tags on `list_store_flows` are auto-extracted from the flow's `description`
152
> field (maker hashtags like `#operations`). Tags written via
153
> `update_store_flow(tags=...)` are stored separately and only visible on
154
> `get_store_flow` — they do NOT appear in the list response.
155
156
### `get_store_flow`
157
158
Full cached record. Key fields:
159
160
| Category | Fields |
161
|---|---|
162
| Identity | `name`, `displayName`, `environmentName`, `state`, `triggerType`, `triggerKind`, `tier`, `sharingType` |
163
| Run stats | `runPeriodTotal`, `runPeriodFails`, `runPeriodSuccess`, `runPeriodFailRate`, `runPeriodSuccessRate`, `runPeriodDurationAverage`/`Max`/`Min` (milliseconds), `runTotal`, `runFails`, `runFirst`, `runLast`, `runToday` |
164
| Governance | `monitor` (bool), `rule_notify_onfail` (bool), `rule_notify_onmissingdays` (number), `rule_notify_email` (string), `log_notify_onfail` (ISO), `description`, `tags` |
165
| Freshness | `scanned` (ISO), `nextScan` (ISO) |
166
| Lifecycle | `deleted` (bool), `deletedTime` (ISO) |
167
| JSON strings | `actions`, `connections`, `owners`, `complexity`, `definition`, `createdBy`, `security`, `triggers`, `referencedResources`, `runError` — all require `json.loads()` to parse |
168
169
> Duration fields (`runPeriodDurationAverage`, `Max`, `Min`) are in
170
> **milliseconds**. Divide by 1000 for seconds.
171
>
172
> `runError` contains the last run error as a JSON string. Parse it:
173
> `json.loads(record["runError"])` — returns `{}` when no error.
174
175
### `get_store_flow_summary`
176
177
Aggregated stats over a time window (default: last 7 days).
178
179
```json
180
{
181
"flowKey": "Default-<envGuid>.<flowGuid>",
182
"windowStart": null,
183
"windowEnd": null,
184
"totalRuns": 82,
185
"successRuns": 81,
186
"failRuns": 1,
187
"successRate": 0.988,
188
"failRate": 0.012,
189
"averageDurationSeconds": 2.877,
190
"maxDurationSeconds": 9.433,
191
"firstFailRunRemediation": null,
192
"firstFailRunUrl": null
193
}
194
```
195
196
> Returns all zeros when no run data exists for this flow in the window.
197
> Use `startTime` and `endTime` to change the window. Without `endTime`, a
198
> `startTime` older than 7 days is moved up to 7 days ago, so pass both for a
199
> longer window. Use date-times such as `2026-10-19T00:00:00Z`; a value that is
200
> not a date is refused with "Nothing was read".
201
202
### `get_store_flow_runs`
203
204
Direct array of cached run records (default: the last 7 days). Parameters:
205
`startTime`, `endTime` (date-times, as above), `status` (array — pass
206
`["Failed"]` for an errors-only view, `["Succeeded"]`, or omit for all).
207
208
> Returns `[]` when no run data exists in the window.
209
210
### Trigger URL
211
212
Read the `triggerUrl` field from `get_store_flow` (cached; `null` for non-HTTP
213
triggers), or call `get_live_flow` with `includeTriggerUrl: true` (live; returns
214
`triggerUrls`). The URL is a credential: anyone holding it can run the flow.
215
216
### Starting / stopping a flow
217
218
Use `set_live_flow_state` from the `monitor-flow` server bundle. The cache
219
catches up on the next daily scan; if you need cache freshness sooner, call
220
`get_live_flow` after the state change to confirm and let the next scan sync.
221
If Power Automate refuses it, the error reads `Microsoft error: <code>: <message>`;
222
`Invalid flowName` means the flow was not found.
223
224
### `update_store_flow`
225
226
Updates governance metadata. Only provided fields are updated (merge).
227
Returns the full updated record (same shape as `get_store_flow`).
228
229
Settable fields: `monitor` (bool), `rule_notify_onfail` (bool),
230
`rule_notify_onmissingdays` (number, 0=disabled),
231
`rule_notify_email` (comma-separated), `description`, `tags`,
232
`businessImpact`, `businessJustification`, `businessValue`,
233
`ownerTeam`, `ownerBusinessUnit`, `supportGroup`, `supportEmail`,
234
`critical` (bool), `tier`, `security`.
235
236
### `list_store_environments`
237
238
Direct array.
239
240
```json
241
[
242
{
243
"id": "Default-aaaaaaaa-...",
244
"displayName": "Contoso (default)",
245
"sku": "Default",
246
"type": "NotSpecified",
247
"location": "australia",
248
"isDefault": true,
249
"isAdmin": true,
250
"isManagedEnvironment": false,
251
"createdTime": "2020-03-04T09:15:00Z"
252
}
253
]
254
```
255
256
> `sku` values: `Default`, `Production`, `Developer`, `Sandbox`, `Teams`.
257
258
### `list_store_connections`
259
260
Direct array. Can be very large (1500+ items).
261
262
```json
263
[
264
{
265
"id": "<environmentId>.<connectionId>",
266
"displayName": "user@contoso.com",
267
"createdBy": "{\"id\":\"...\",\"displayName\":\"...\",\"email\":\"...\"}",
268
"environmentName": "...",
269
"statuses": "[{\"status\":\"Connected\"}]"
270
}
271
]
272
```
273
274
> `createdBy` and `statuses` are **JSON strings** — parse with `json.loads()`.
275
276
### `list_store_makers`
277
278
Direct array.
279
280
```json
281
[
282
{
283
"id": "eeeeeeee-...",
284
"displayName": "Sample Maker",
285
"mail": "maker@contoso.com",
286
"deleted": false,
287
"ownerFlowCount": 199,
288
"ownerAppCount": 209,
289
"userIsServicePrinciple": false
290
}
291
]
292
```
293
294
> Deleted makers have `deleted: true` and no `displayName`/`mail` fields.
295
296
### `get_store_maker`
297
298
Full maker record. Key fields: `displayName`, `mail`, `userPrincipalName`,
299
`ownerFlowCount`, `ownerAppCount`, `accountEnabled`, `deleted`, `country`,
300
`firstFlow`, `firstFlowCreatedTime`, `lastFlowCreatedTime`,
301
`firstPowerApp`, `lastPowerAppCreatedTime`,
302
`licenses` (JSON string of M365 SKUs).
303
304
### `list_store_power_apps`
305
306
Direct array.
307
308
```json
309
[
310
{
311
"id": "<environmentId>.<appId>",
312
"displayName": "My App",
313
"environmentName": "...",
314
"ownerId": "eeeeeeee-...",
315
"ownerName": "Sample Maker",
316
"appType": "Canvas",
317
"sharedUsersCount": 0,
318
"createdTime": "2023-08-18T01:06:22Z",
319
"lastModifiedTime": "2023-08-18T01:06:22Z",
320
"lastPublishTime": "2023-08-18T01:06:22Z"
321
}
322
]
323
```
324
325
---
326
327
## Common Workflows
328
329
### Find unhealthy flows
330
331
```
332
1. list_store_flows
333
2. Filter where runPeriodFailRate > 0.1 and runPeriodTotal >= 5
334
3. Sort by runPeriodFailRate descending
335
4. For each: get_store_flow for full detail
336
```
337
338
### Check a specific flow's health
339
340
```
341
1. get_store_flow → check scanned (freshness), runPeriodFailRate, runPeriodTotal
342
2. get_store_flow_summary → aggregated stats with optional time window
343
3. get_store_flow_runs(status=["Failed"]) → per-run failure detail with remediation hints
344
4. If deeper diagnosis needed → switch to live tools:
345
get_live_flow_runs(status="Failed") → get_live_flow_run_error →
346
get_live_flow_run_action_outputs
347
```
348
349
### Enable monitoring on a flow
350
351
```
352
1. update_store_flow with monitor=true
353
2. Optionally set rule_notify_onfail=true, rule_notify_email="user@domain.com"
354
3. Run data will appear after the next daily scan
355
```
356
357
### Daily health check
358
359
```
360
1. list_store_flows
361
2. Flag flows with runPeriodFailRate > 0.2 and runPeriodTotal >= 3
362
3. Flag monitored flows with state="Suspended" (Power Automate turned them off;
363
get_live_flow → flowSuspensionReason says why) or "Stopped"
364
4. For critical failures → get_store_flow_runs(status=["Failed"]) for remediation hints
365
```
366
367
### Maker audit
368
369
```
370
1. list_store_makers
371
2. Identify deleted accounts still owning flows (deleted=true, ownerFlowCount > 0)
372
3. get_store_maker for full detail on specific users
373
```
374
375
### Inventory
376
377
```
378
1. list_store_environments → environment count, SKUs, locations
379
2. list_store_flows → flow count by state, trigger type, fail rate
380
3. list_store_power_apps → app count, owners, sharing
381
4. list_store_connections → connection count per environment
382
```
383
384
---
385
386
## Related Skills
387
388
- `flowstudio-power-automate-mcp` — Foundation skill: connection setup, MCP helper, tool discovery
389
- `flowstudio-power-automate-debug` — Deep diagnosis with action-level inputs/outputs (live API)
390
- `flowstudio-power-automate-build` — Build and deploy flow definitions
391
- `flowstudio-power-automate-governance` — Governance metadata, tagging, notification rules, CoE patterns
392

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…