Tool-reference
Part of Power automate mcp. Install the skill and your agent reads this page when it needs the depth.
FlowStudio MCP — Tool Response Catalog
Response shapes and behavioral notes for the FlowStudio Power Automate MCP server.
For tool names and parameters: Prefer
list_skillsandtool_search. They return focused, up-to-date schemas without loading every MCP tool at once. Usetools/listonly as a low-level fallback when the meta-tools are not available. This document covers what tool schemas do NOT tell you: response shapes and non-obvious behaviors discovered through real usage.
Source of Truth
| Priority | Source | Covers |
|---|---|---|
| 1 | Real API response | Always trust what the server actually returns |
| 2 | tool_search (list_skills gives bundle names only) |
Tool names, parameter names, types, required flags |
| 3 | This document | Response shapes, behavioral notes, gotchas |
If this document disagrees with
tool_search,tools/list, or real API behavior, the API wins. Update this document accordingly.
Environment & Tenant Discovery
list_live_environments
Response: direct array of environments.
[
{
"id": "Default-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"displayName": "Contoso (default)",
"sku": "Production",
"location": "australia",
"state": "Succeeded",
"isDefault": true,
"isAdmin": true,
"isMember": true,
"createdTime": "2023-08-18T00:41:05Z"
}
]
Use the
idvalue asenvironmentNamein all other tools — a display name is refused unless it matches one environment's whole name.stateis the environment's provisioning state (Succeededwhen ready).isAdminisnull, notfalse, when the platform did not say.mode: "admin"returns only the environments where you can list every flow.
list_store_environments
Same shape as list_live_environments but read from cache (faster).
Connection Discovery
list_live_connections
Response: wrapper object with connections array.
{
"connections": [
{
"id": "shared-office365-ffffffff-ffff-ffff-ffff-ffffffffffff",
"displayName": "user@contoso.com",
"connectorName": "shared_office365",
"environment": "Default-aaaaaaaa-...",
"createdBy": {"id": "<aad-object-id>", "displayName": "User Name", "email": "user@contoso.com", "type": "User"},
"statuses": [{"status": "Connected"}],
"createdTime": "2024-03-12T21:23:55.206815Z",
"connectionParameters": {},
"accountName": "user@contoso.com",
"expirationTime": "2026-11-11T18:48:46.5637835Z",
"connectionReferenceTemplate": {
"shared-office365-ffffffff-ffff-ffff-ffff-ffffffffffff": {
"connectionName": "shared-office365-ffffffff-ffff-ffff-ffff-ffffffffffff",
"id": "/providers/Microsoft.PowerApps/apis/shared_office365"
}
},
"hostTemplate": {
"connectionName": "shared-office365-ffffffff-ffff-ffff-ffff-ffffffffffff",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
"usageHint": "Add connectionReferenceTemplate to update_live_flow's connectionReferences map. ..."
}
],
"totalCount": 5,
"search": "office365",
"truncated": true,
"matchedCount": 19,
"permissionsIncluded": true,
"fallbackUsed": false,
"error": null
}
Key field:
idis theconnectionNamevalue used inconnectionReferences.Key field:
connectorNamemaps to apiId:"/providers/Microsoft.PowerApps/apis/" + connectorNameFilter by status with
statuses[0].status == "Connected". The reply has nooverallStatusorauthenticatedUser, even though the tool description lists them; the signed-in account isaccountName.
connectionReferenceTemplateis already a map keyed by the connection id — merge it intoconnectionReferencesas-is; do not nest it under another key.hostTemplate.connectionNameis that same id, so actions that usehostTemplatematch the map key. Do not add"source": "Invoker": it saves the connection as "provided by run-only user".
environmentNameis required — the platform cannot list connections across environments (omitting it answers 400 MissingEnvironmentFilter). Get one fromlist_live_environments.Pass
search=<connector or account>to narrow output and receiveconnectionReferenceTemplateplushostTemplatevalues that can be copied directly intoupdate_live_flow.
list_store_connections
Same connection data from cache.
Flow Discovery & Listing
list_live_flows
Response: wrapper object with flows array.
{
"mode": "owner",
"flows": [
{
"id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
"displayName": "My Flow",
"state": "Started",
"triggerType": "Request",
"triggerKind": "Http",
"createdTime": "2023-08-18T01:18:17Z",
"lastModifiedTime": "2023-08-18T12:47:42Z",
"owners": ["<aad-object-id>"],
"definitionAvailable": true
}
],
"totalCount": 100,
"nextLink": null,
"error": null
}
Access via
result["flows"].idis a plain UUID --- use directly asflowName.
modeindicates the access scope used ("owner"or"admin").ownersis an array (often empty).nextLinkappears only when paging stopped early.Parameters added in newer server versions:
search: filter by display name server-side.mode:owner(default) for flows you own plus flows shared with you;adminfor every flow in the environment (needs an admin account).includeDeleted: true(withmode: "admin"): also returns soft-deleted flows (state: "Deleted") — the only listing that shows them.timeoutSeconds: return partial results withnextLinkinstead of waiting on very large environments.continuationUrl: pass the previousnextLinkto continue the same query.
list_store_flows
Response: direct array (no wrapper).
[
{
"id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb.cccccccc-cccc-cccc-cccc-cccccccccccc",
"displayName": "Admin | Sync Template v3 (Solutions)",
"state": "Started",
"triggerType": "OpenApiConnectionWebhook",
"environmentName": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"runPeriodTotal": 100,
"createdTime": "2023-08-18T01:18:17Z",
"lastModifiedTime": "2023-08-18T12:47:42Z"
}
]
idformat:<environmentId>.<flowId>--- split on the first.to extract the flow UUID:flow_id = item["id"].split(".", 1)[1]
get_store_flow
Response: single flow metadata from cache (selected fields).
{
"id": "<environmentId>.<flowId>",
"displayName": "My Flow",
"state": "Started",
"triggerType": "Recurrence",
"runPeriodTotal": 100,
"runPeriodFailRate": 0.1,
"runPeriodSuccessRate": 0.9,
"runPeriodFails": 10,
"runPeriodSuccess": 90,
"runPeriodDurationAverage": 29410.8,
"runPeriodDurationMax": 158900.0,
"runError": "{\"code\": \"EACCES\", ...}",
"description": "Flow description",
"tier": "Premium",
"complexity": "{...}",
"actions": 42,
"connections": ["sharepointonline", "office365"],
"owners": ["user@contoso.com"],
"createdBy": "user@contoso.com"
}
runPeriodDurationAverage/runPeriodDurationMaxare in milliseconds (divide by 1000).runErroris a JSON string --- parse withjson.loads().
Flow Definition (Live API)
get_live_flow
Response: full flow definition from PA API.
{
"name": "<flow-guid>",
"properties": {
"displayName": "My Flow",
"state": "Started",
"lastModifiedTime": "2026-11-04T01:06:46.3052874Z",
"definition": {
"triggers": { "..." },
"actions": { "..." },
"parameters": { "..." }
},
"connectionReferences": { "..." }
},
"retrievedAsAdmin": false,
"definitionAvailable": true
}
Narrow a large flow:
depth: "summary"replacesdefinition.actionswithdefinition.actionTree(name, type, operationId, connection, runAfter, nesting — no inputs) and adds anarrowednote.actions: ["Name", …]returns just those actions, found at any depth. Never save a narrowed definition back whole.
versionreads an earlier version (an id fromget_live_flow_versions, or a date).includeTriggerUrl: trueaddstriggerUrls: [{trigger, method, url}]for HTTP request triggers.
retrievedAsAdmin: truewithdefinitionAvailable: falsemeans only the admin endpoint could read the flow: there is no definition to edit.Keep
properties.lastModifiedTime— pass it toupdate_live_flowasexpectedLastModifiedTimeso a save is refused if someone changed the flow in between.
get_live_flow_versions
Response:
{
"versions": [
{"version": "08584296068667933411438594643CU15", "source": "run", "current": true,
"savedAt": "2026-11-02T09:31:33Z", "firstRan": "2026-11-02T09:31:37Z",
"lastRan": "2026-11-02T09:31:37Z", "runCount": 1}
],
"runsRead": 2,
"more": false
}
Newest first. A flow in a solution lists every published version; any other flow lists only versions that ran, while their runs are kept. A version with
source: "draft"locks the flow —update_live_flowis refused until the draft is published in the portal or discarded withdiscardDraft: true.
diff_live_flow
from (a version, a run name, or a date) and optional to (default: the current
flow).
Response: {from, to, identical, added: [...], removed: [...], changed: [{action, fields: [{field, from, to}]}]}
— action names, with field-level before/after for changed actions. Use it to
answer "what changed since it last worked".
To put an earlier version back, follow tool_search skill:flow-versions: diff,
get the person's yes, read the old actions with get_live_flow version +
actions, save only those with update_live_flow, then diff again.
update_live_flow
Create mode: Omit flowName --- creates a new flow. definition and displayName required.
Update mode: Provide flowName --- PATCHes existing flow.
Response:
{
"created": false,
"flowKey": "<environmentId>.<flowId>",
"updated": ["definition", "connectionReferences"],
"displayName": "My Flow",
"state": "Started",
"definition": { "...full definition..." },
"error": null
}
On create:
createdistrueand the new flow GUID is inflowName(flowKey=<environmentId>.<flowName>). On update:createdisfalse.
errorisnullon a finished save. A dry run and a still-running task have noerrorkey — check forstatus: "working"(then pollget_task) before reading a missingerroras success. A refused save comes back withisError: true.Surgical edit — pass
operationsinstead ofdefinitionto change one action:[{"op": "set", "path": ["actions", "Send_Email", "inputs", "parameters", "subject"], "value": "Weekly report"}].pathis an array of literal keys (array items by index); a/inside an element is literal, so["actions", "Update_item", "inputs", "parameters", "item/Title"]works. Ops:set,add(fails if the key exists),remove,merge. The reply hasmode: "applied",operationsApplied, and per-path before/after inchanges— not the whole definition.
dryRun: truepreviews either kind of save and writes nothing. The reply hasdryRun: true,mode: "preview", andwouldCreateorwouldUpdate.
expectedLastModifiedTime(fromget_live_flow'sproperties.lastModifiedTime) refuses a whole-definition save if the flow changed since you read it.discardDraft: truediscards an unpublished portal draft that blocks the save of a solution flow; the draft stays in version history. The draft may hold someone else's work, so ask the person before discarding it.
hints(when present) lists what the server fixed or warns about — for example a solution flow saved with a direct connection. Read it.
definition.descriptionis required on create. On update the server reuses the flow's existing description when you leave it out.#flowstudio-mcpis appended to it.
add_to_solution
Adds a flow (flowName) or a canvas app (app) to a solution. solution is the
solution's unique name or its solutionid GUID.
- A flow not yet in a solution moves into
solution, or into the default solution whensolutionis omitted. Prefer an explicit unmanaged solution for production ALM. - A flow already in a solution is also added to
solutionand stays in its current one;solutionis required then. - It never changes a flow's connections.
Use this after creating a Copilot Studio Skills-triggered flow that must be discoverable as an agent tool.
add_live_flow_to_solution (with solutionId) is hidden. It still runs when
called by exact name and its reply names add_to_solution.
This tool changes solution membership only. It does not validate the trigger schema, publish a Copilot Studio agent, or prove that the flow is callable by the agent.
Connector Operation Discovery
describe_live_connector
Describes a connector/API and its operations. Use it before creating connector actions instead of guessing operation JSON.
Common modes:
| Call shape | Use |
|---|---|
search="send email" without connectorName |
Search operations across connectors |
connectorName="shared_sharepointonline" |
Compact operation catalog for one connector (depth: "summary", the default) |
operationId="GetItems" |
Expanded schema for one operation — {connectorName, mode: "operation", operation: {name, summary, inputs, ...}, hints, nextStepHint} |
variant="flowbot_chat" |
Authored example for one operation variant |
type="Trigger" |
List trigger operations instead of actions |
depth: "full" |
Raw OpenAPI metadata (100-600 KB) — only when nothing else works |
The operation detail can include:
hints.hint: authored guidance from the connector hints table.hints.exampleDefinition: copy-ready action/trigger shape when available.- Dynamic inputs with
nextTool: "resolve_live_parameters"and ahintnaming theparameterNameto resolve.
mode is the old name for depth and still works, with a hint.
resolve_live_parameters
Resolves an action's live inputs the way the flow designer does: dropdown options, list and table columns, folder and file pickers, people. Reads only.
connectorName+operationId: every input in one call, or one withparameterName. OrflowName+actionNamefor an action already in a flow.parameters: values already chosen, e.g.{"dataset": "<site url>"}. An input whose parent is not known yet comes back withstatus: "needs".match: a display name per input ({"table": "Roster"}). A match answersstatus: "ok"withmatched: {value, displayName}and adds the value to the reply'sparameters; no match answersstatus: "nomatch"with the options.search,top(default 200),skip(usenextSkip),detail(compact|full),include: ["outputs"]for the fields the action returns.connectionNameis optional: one is chosen and reported inconnection.
Response: {connectorName, operationId, connection: {connectionName, reason, candidates}, parameters, fields: [{name, title, required, kind, status, values: [{value, displayName}], totalCount}]}.
get_live_dynamic_options and get_live_dynamic_properties are hidden. They
still run when called by exact name and their replies name
resolve_live_parameters.
Data and Connection Tools
read_live_table
Reads rows from a Dataverse table, SharePoint list, SQL table or Excel table. Read-only.
| Source | connector |
table |
dataset |
|---|---|---|---|
| Dataverse | omit | set name, e.g. accounts |
— |
| SharePoint | sharepoint |
list title or id | site URL |
| SQL | sql |
table | server,database |
| Excel | excel |
table | drive,file |
Also: select (comma-separated), filter (OData), top (1-100, default 20),
skip (SQL and Excel), continuationUrl (the previous nextLink). Pass
connection when you have more than one connection for that connector and not
exactly one is Connected — the call is refused, with the list, until you do. Note the name: connection, not
connectionName.
Response: {connector, table, connectionName, rowCount, columns, rows, nextLink, next}.
If the rows would pass 20,000 characters, only the rows that fit are returned and
note says so — name fewer columns with select.
test_live_connection
Without operationId: runs the connector's own connection test — the quick way
to tell a broken connection from a broken flow. With operationId: runs one read
operation (or a lookup the connector declares) and returns the raw reply. Needs
connectorName and connectionName (from list_live_connections). Over the
/mcp/oauth route only the connection test is offered.
create_live_connection
Creates a connection, or signs an existing one in again when given
connectionName. Shows a sign-in card; the person signs in — you never sign in
for them. Always give them signInLink as well (the card may not show); it
expires about 10 minutes after it is made (signInLinkExpires). Connectors that
need a key or account details are refused: create those in Power Automate.
Check the result with list_live_connections or test_live_connection.
grant_flow_studio_access
No arguments. Shows a sign-in card so the person grants FlowStudio access, or grants it again when it expired or was revoked. Call it when a tool error says "This needs one more sign-in" and names it.
Run History & Monitoring
get_live_flow_runs
Response: { runs, runCount, triggerChecks } — runs newest first.
{
"runs": [{
"name": "<run-id>",
"status": "Succeeded|Failed|Running|Cancelled",
"startTime": "2026-02-25T06:13:38Z",
"endTime": "2026-02-25T06:14:02Z",
"triggerName": "Recurrence",
"error": null
}],
"runCount": 1,
"triggerChecks": null
}
topdefaults to 30 and auto-paginates for higher values. Settop: 300for 24-hour coverage on flows running every 5 minutes.Filter on Microsoft's side instead of in code:
status(Succeeded,Failed,Cancelled,Running),startedAfter/startedBefore(date-times like2026-10-01T00:00:00Z), andtriggerCheckStatus(Succeeded,Failed,Skipped). Filters hold across pages. The reply echoesrunFilter(e.g."status eq 'Failed'") and adds anotewhen nothing matched. Each run also carriestriggerCode.Run ID field is
name(notrunName). Use this value as therunNameparameter in other tools.An empty
runslist does not mean the flow is healthy. A connector trigger that errors, or finds nothing new, records a TRIGGER CHECK and never becomes a run. With nostatus,startedAfterorstartedBeforefilter, an emptyrunsfillstriggerChecksautomatically; with any of those filters it staysnulland only anotecomes back.includeTriggerChecks: trueortriggerCheckStatusreturns it even when runs exist (two extra API calls).
triggerCheckscovers the newest 40 checks of the first trigger only (checked,hasMore,otherTriggers).byStatuscounts them;recentlists the newest 10 (checkId,status,code,fired,runName,failure).
Skipped(for example codeAccepted, HTTP 202) = the trigger polled and found nothing new, or a trigger condition filtered it out. Normal for a quiet source, not a failure.Succeeded+fired: truestarted a run (runName).fired: falsemeans a trigger condition orsplitOnwas not met (Microsoft's documented meaning; not seen live).Failed= the trigger itself errored.recent[].failurealready holds the message for the newest 3; read any other withget_live_flow_run_action_outputsand itscheckId.checked: 0= no checks recorded (for example a Request or Button trigger nobody called).available: false= the checks could not be read (reason, for exampleowner-access-required); that says nothing about health.On a 1-minute poll, 40 checks is about 40 minutes: pass
triggerCheckStatus: "Failed"to find older failures.
get_live_flow_run_error
Response: structured error breakdown for a failed run.
{
"runName": "08584296068667933411438594643CU15",
"failedActions": [
{
"actionName": "Apply_to_each_prepare_workers",
"status": "Failed",
"error": {"code": "ActionFailed", "message": "An action failed."},
"code": "ActionFailed",
"startTime": "2026-02-25T06:13:52Z",
"endTime": "2026-02-25T06:15:24Z"
},
{
"actionName": "HTTP_find_AD_User_by_Name",
"status": "Failed",
"code": "NotSpecified",
"startTime": "2026-02-25T06:14:01Z",
"endTime": "2026-02-25T06:14:05Z"
}
],
"allActions": [
{"actionName": "Apply_to_each", "status": "Skipped"},
{"actionName": "Compose_WeekEnd", "status": "Succeeded"},
{"actionName": "HTTP_find_AD_User_by_Name", "status": "Failed"}
]
}
failedActionscomes back in the order Power Automate lists actions — alphabetical by name, not by nesting or run order — so the last entry is not necessarily the root cause. A failed container (Scope, Foreach, Condition, Switch) usually hascode: "ActionFailed"("An action failed"); the root cause is normally the failed action with any other code. Not every entry has anerrorobject — usecode, then read the full message withget_live_flow_run_action_outputsand thatactionName. Check nesting withget_live_flowdepth: "summary".
runNameis required.runName: "latest"picks the most recent run on purpose.
get_live_flow_run_action_outputs
Response: wrapper object with an actions array.
{
"runName": "08584296068667933411438594643CU15",
"actionName": "Compose_WeekEnd_now",
"actions": [
{
"actionName": "Compose_WeekEnd_now",
"status": "Succeeded",
"startTime": "2026-02-25T06:13:52Z",
"endTime": "2026-02-25T06:13:52Z",
"error": null,
"inputs": "Mon, 25 Feb 2026 06:13:52 GMT",
"outputs": "Mon, 25 Feb 2026 06:13:52 GMT"
}
]
}
Index
res["actions"]— the reply is not a bare list. For an action inside a foreach the list isres["repetitions"](res["repetition"]withiterationIndex).
runNameis required (thenamefromget_live_flow_runs, or"latest"); a call without it is refused. Leave it out only when you passcheckId.
actionNameis optional: omit it for a survey of every action in the run, nested ones included — each payload capped at 4,000 characters ({truncated, chars, preview, readInFull}), most headers dropped, and anotesaying so. Provide it for one action in full. If that action runs inside a foreach, the tool can return every repetition of that action across iterations; passiterationIndexto pin to one zero-based iteration. For the trigger, passtrigger: true—actionNameset to the trigger's name returnsactions: [].A payload over 1 MB is not downloaded. It comes back as
{tooLarge: true, bytes, maxBytes, link, linkExpiresAt, note};linkdownloads it with a plain GET and no sign-in untillinkExpiresAt, so treat it like a password. Keep a 120s+ timeout: up to 4 payloads are read at a time.
Run Control
resubmit_live_flow_run
Response: { flowKey, resubmitted: true, runName, triggerName }
runNameis required."latest"resubmits the most recent run — confirm it is the run you mean first.
cancel_live_flow_run
Cancels a Running flow run. Response: { flowKey, cancelled: true, runName }.
runNameis required and must be a real run name —"latest"is refused.
Do NOT cancel runs waiting for an adaptive card response --- status
Runningis normal while a Teams card is awaiting user input.
HTTP Trigger Tools
Trigger URL and Request Schema
get_live_flow with includeTriggerUrl: true returns
triggerUrls: [{trigger, method, url}] for HTTP request triggers. The URL is a
credential — anyone holding it can run the flow — so ask for it only when the
person needs to call the flow by its address, and share it only where it is meant
to go. A stopped flow returns no URL; turning it on brings the same URL back.
Without the flag, an HTTP-triggered flow's reply carries triggerUrlHint.
The request body schema is the Request trigger's inputs.schema in the
definition; response schemas are on the Response actions.
get_live_flow_trigger_url, get_store_flow_trigger_url and
get_live_flow_http_schema are hidden. They still run when called by exact name
(their replies name the replacement), but tool_search no longer returns them.
To run a flow, use trigger_live_flow.
trigger_live_flow
Response keys: flowKey, triggerName, triggerType, triggerKind, invocation,
triggerUrl, requiresAadAuth, authType, responseStatus, responseBody,
runName, warning when a required trigger input was not supplied, and
runOnlyUserConnections + hints for flows whose connections are provided by
whoever runs them.
Works for
Requesttriggers (HTTP request, Button, PowerApps, Copilot Studio Skills) and for scheduled (Recurrence) flows. A scheduled flow runs immediately, like the portal's "Run flow" button, and takes nobody— one is refused. Automated connector triggers only fire from their source event and return an error.HTTP triggers go through the signed callback URL (
invocation: callbackUrl). Button, PowerApps and Skills triggers have no callback URL; with abodythey run through the Power Platform connector runtime (connectorFlowTokenorconnectorApihubToken), which is the only route that delivers the inputs. With no body they use the cheaper direct run (directRun).
runNameis returned only for connector-runtime runs. Otherwise look the run up withget_live_flow_runs.Power Automate does not enforce a trigger's
requiredlist. A missing input still starts the run with a null value;warningnames the missing keys and the body shape to retry with.Browser-extension keys run Button, PowerApps and Skills triggers with inputs too: the connector call runs inside the extension (version 1.0.19 or later).
connectionsis only for a flow whose connections are provided by whoever runs it ("run-only user"): a map of connection-reference name to connection id, e.g.{"shared_office365users": "shared-office365user-…"}. By default the run uses the connection already bound to the flow; the reply'srunOnlyUserConnectionsandhintssay which one was used. Passconnectionsonly when that pick was wrong.
responseStatus+responseBodycontain the flow's Response action output. AAD-authenticated triggers are handled automatically.Content type:
bodyis sent asapplication/json, sotriggerBody()and the trigger schema see the object you passed. Verified 2026-08-27 on server 1.2.43 against Button, PowerAppV2, and Skills triggers withrequiredschemas.
Flow State Management
set_live_flow_state
Start or stop a Power Automate flow in any environment you have access to. Reads the current state first and only issues the start/stop call if a change is actually needed.
Parameters: environmentName, flowName, state ("Started" | "Stopped") — all required.
Response:
{
"flowName": "dddddddd-dddd-dddd-dddd-dddddddddddd",
"environmentName": "Default-aaaaaaaa-...",
"requestedState": "Started",
"previousState": "Stopped",
"currentState": "Started",
"changed": true
}
When every endpoint fails and Microsoft gave a message, the error reads
Microsoft error: <code>: <Microsoft's message>followed by any hints.Invalid flowNamemeans both endpoints answered 404.
Use this tool — not
update_live_flow— to start or stop a flow.update_live_flowonly changes displayName/definition; the PA API ignores state passed through that endpoint.
set_store_flow_state
Hidden — use set_live_flow_state. It still runs when called by exact name and
its reply names the replacement.
Store Tools --- Pro+ Only
MCP Pro+ only, and not in Microsoft 365 Copilot (Copilot Chat or Cowork), even on Pro+. Without them,
tool_search skill:governance returns no tools and list_skills leaves
governance out.
get_store_flow_summary
Response: aggregated run statistics.
{
"totalRuns": 100,
"failRuns": 10,
"failRate": 0.1,
"averageDurationSeconds": 29.4,
"maxDurationSeconds": 158.9,
"firstFailRunRemediation": "<hint or null>"
}
get_store_flow_runs
Cached run history (default: the last 7 days) with duration, failed actions and
remediation hints. For failed runs only, pass status: ["Failed"] — this
replaces the hidden get_store_flow_errors.
get_store_flow_trigger_url is hidden too: use get_live_flow with
includeTriggerUrl: true.
update_store_flow
Update governance metadata (description, tags, monitor flag, notification rules, business impact).
list_store_makers / get_store_maker
Maker (citizen developer) discovery and detail.
list_store_power_apps
List all Power Apps canvas apps from the cache.
Behavioral Notes
Non-obvious behaviors discovered through real API usage. These are things tool schemas cannot tell you.
get_live_flow_run_action_outputs
actionNameis optional: omit for a survey of every action in the run (nested ones included), provide to get one action. For actions inside foreach loops, a named action returnsrepetitions; useiterationIndexto pin to one iteration.trigger: truereturns the run's own trigger inputs/outputs (e.g. the full inbound mail item).checkId(fromtriggerChecks.recent[].checkId) reads one trigger check in full; leaverunNameout, because passing both is refused. Use it onFailedchecks: aSkippedone (HTTP 202) can still carry harmless connector text infailureMessage, such as SharePoint's "SPConnectorException".- A payload over 1 MB comes back as
tooLargewith a downloadlinkinstead of the data.runNameis required (or"latest") unless you passcheckId. Keep a 120s+ timeout.
delete_live_flow / restore_live_flow
- Both are offered to every agent.
delete_live_flowis refused while the person's Delete Lock is on — the default. Only they can turn it off, at https://mcp.flowstudio.app/dashboard; no workspace owner is involved. Do not tell users deletion is impossible — say Delete Lock is on. To stop a flow without deleting it, useset_live_flow_statewithstate: "Stopped". restore_live_flowcan always be called, Delete Lock or not.- Delete requires
confirmDisplayName(read it withget_live_flowfirst) and areason. Keep the returned id: a deleted flow appears only inlist_live_flowswithmode: "admin"andincludeDeleted: true, and restore can complete asynchronously — confirm withget_live_flow.
update_live_flow
- Required fields can vary by server version; confirm with
tool_search(select:update_live_flow) before create/update. Ifdescriptionis required, preserve the existing description when patching. errorisnullon a finished save. A dry run and a still-running task have noerrorkey — checkres.get("status") == "working"(then pollget_task) before treating a missing error as success.- On create,
created=trueand the new GUID is inflowName. On update,created=false. - A real save still running after about 25 seconds replies with a
taskId. Do not save again — pollget_task. A repeated create with the same name joins the running task, but a retry under a new name creates a second flow. - Cannot change flow state. Only updates displayName, definition, and
connectionReferences. Use
set_live_flow_stateto start/stop a flow.
trigger_live_flow
- Works for HTTP, Button, PowerApps, Skills, and scheduled (Recurrence) triggers.
A scheduled flow runs with no
body. Automated connector triggers error. - Pass trigger inputs as
body. Awarningin the result means a required input was missing and the run started with it null. - AAD-authenticated triggers are handled automatically (Bearer token attached).
get_live_flow_runs
- Response is
{ runs, runCount, triggerChecks }— index["runs"], newest first. topdefaults to 30 with automatic pagination for higher values. Filter withstatus,startedAfter,startedBeforeandtriggerCheckStatusrather than fetching and filtering in code.- Run ID field is
name, notrunName. Use this value asrunNamein other tools. - Empty
runswith nostatus/date filter always returnstriggerChecks, so readbyStatus: anyFailed= the trigger is erroring; onlySkipped= it polled and found nothing new (a quiet flow, not a fault);checked: 0= no checks recorded;available: false= could not read them (seereason).
Teams PostMessageToConversation (via update_live_flow)
- "Chat with Flow bot":
body/recipient="user@domain.com;"(string with trailing semicolon). - "Channel":
body/recipient={"groupId": "...", "channelId": "..."}(object). poster:"Flow bot"for Workflows bot identity,"User"for user identity.
list_live_connections
environmentNameis required; the platform cannot list connections across environments.topis applied aftersearchand the result carriestruncated+matchedCountwhen the cap drops matches.- Use
search=<connector/account>to get smaller output and paste-readyconnectionReferenceTemplate/hostTemplatevalues. The template is a map keyed by the connection id — merge it as-is;hostTemplate.connectionNameis the same id. idis the value you need forconnectionNameinconnectionReferences.connectorNamemaps to apiId:"/providers/Microsoft.PowerApps/apis/" + connectorName.