Can Microsoft's MAI models build a Power Automate flow?
Quick Map
For
- Power Automate makers
- People choosing a model for agent work
- MCP builders
You'll see
- How MAI Code 2 and MAI Code 2 Flash do at building flows
- What a working flow costs on five different models
- Why a cheap model that recovers can beat an expensive one that doesn't need to
New models showed up in my GitHub Copilot model picker: MAI Code 2 and MAI Code 2 Flash.
MAI is Microsoft AI. These are Microsoft’s own models, not OpenAI models with a new label. They were announced at Ignite, they’re trained inside the same Copilot setup that runs in production, and the pitch is price. Flash is very, very cheap.
So, can they build a Power Automate flow?
We tried it. Then we couldn’t help ourselves, and ran the same test on Claude Opus 5.5, GPT-5.6 Sol and Gemini 4 Neon too.
1. The test
Each model got the same prompt, the GitHub Copilot CLI, and FlowStudio MCP. No help from me. Build the flow, run it, check the answer, fix it if it’s wrong (up to 5 tries).
Round 1: built-in actions only. An HTTP trigger takes a customer and a list of orders. Drop the orders with qty 0, work out each line total, add them up, mark it Gold if the total is over 1000, and reply with JSON.
Round 2: connectors. The same orders, but now create one SharePoint item per order, in a list on a site the model has to find by name. One of the columns is a choice column, so it has to look up the allowed values. Then email a summary with an HTML table, and reply with the new item IDs.
The test order has the right answer baked in: 2 lines, grand total 1251.5, Gold.
I didn’t trust the models’ own “passed”. After each run I opened the flow, the run history and the SharePoint list myself.
2. Everyone passed
All five models built both flows, and every final run succeeded.
| Model | Round 1 | Round 2 | Saves Power Automate rejected | Failed test runs |
|---|---|---|---|---|
| MAI Code 2 Flash | Pass | Pass | 3 | 1 |
| MAI Code 2 | Pass | Pass | 2 | 0 |
| Claude Opus 5.5 (medium) | Pass | Pass | 0 | 0 |
| GPT-5.6 Sol | Pass | Pass | 0 | 0 |
| Gemini 4 Neon | Pass | Pass | 0 | 0 |
That last column is the interesting one. Claude, GPT and Gemini got it right first time, in both rounds. The MAI models made mistakes, but fixed them and got there.
3. How the MAI models slipped
These are the kind of mistakes you and I make in the designer too.
- A typo.
variables('grandTotal']. Bracket instead of a parenthesis. - Setting a variable from itself. Power Automate won’t let you. MAI Code 2 worked around it with a Compose, then Set. Increment variable would have been simpler.
- A variable inside a loop. Not allowed either, you have to initialise at the top.
operationOptionsin the wrong place. Both MAI models put it somewhere Power Automate doesn’t accept it.gt(). Not a function in Power Automate. It’sgreater(). Ah, Agent.
Every one of these was caught. The first four were rejected when the flow was saved, with an error that said exactly what was wrong. The model read it, fixed it, and saved again.
The gt() one is different. It saved fine, and only failed when the flow ran.
By the time the flow failed, it had already created two SharePoint items. The fix worked and the next run passed, but those two items were still sitting in the list. So a mistake caught when the flow is saved costs nothing, but one caught when it runs can leave things behind.
4. What it cost
GitHub Copilot now bills by token, as AI credits. One credit is one US cent. The CLI tells you how many credits each run used, so these are the actual numbers.
The table adds both rounds together. It shows what each model cost, how long it took and how many times it called FlowStudio MCP. Time covers the whole job: finding the tools, looking up the site and list, building the flow, running the test and checking the result. The number in brackets after the calls is how many were “finding tools” calls (list_skills, tool_search and who_am_i), where the agent looks around before it starts.
| Model | Cost | vs Opus | Time | MCP calls |
|---|---|---|---|---|
| MAI Code 2 Flash | $0.022 | 32× cheaper | 3m 17s | 34 (6) |
| MAI Code 2 | $0.117 | 6× cheaper | 4m 29s | 33 (10) |
| Claude Opus 5.5 (medium) | $0.688 | - | 1m 38s | 14 (0) |
| Gemini 4 Neon | $0.692 | about the same | 3m 57s | 20 (2) |
| GPT-5.6 Sol | $1.465 | 2× dearer | 4m 18s | 36 (10) |
Is Copilot marking Claude up? I checked. Opus’s round 2 run used 512.1k cached input tokens, 45.6k tokens written to cache and 5.7k output tokens. At Anthropic’s list price ($4 per million input, $5 per million cache writes, $0.20 per million cache reads, $20 per million output) that comes to $0.444. Copilot charged 44.44 credits, exactly the same.
Opus was the fastest by a lot, and made the fewest calls. It made no mistakes, so it never had to go back. Round 1 took it three calls: check the flow name isn’t taken, create the flow, run it. It never called our finding tools at all. It used Copilot’s own tool search instead, and went straight to work.
Flash came second on time, even with four fixes along the way, because each step is quick. Those fixes are most of its extra calls: four saves, two test runs, and a look at the failed run’s error.
GPT-5.6 Sol made no mistakes and still made the most calls, and took the longest in round 2. It looked up more connector details, did a dry run first, and checked more along the way. It was just being careful.
Most of the calls were in round 2. Every model had to look up the SharePoint site, the list, its columns and the choice values before it could write a single action. That’s describe_live_connector and resolve_live_parameters, and it’s the part a person does by clicking through dropdowns in the designer.
Even the slowest model took under five minutes for both flows together.
For one flow, it’s all small change. If an agent built a thousand round-2 flows at the same cost per flow, it would cost:
- MAI Code 2 Flash: about $14
- MAI Code 2: about $64
- Claude Opus 5.5: about $444
- Gemini 4 Neon: about $429
- GPT-5.6 Sol: about $1,018
That’s just one run multiplied by a thousand. Real flows are bigger, and some will take more tries.
5. What we think
Look at the cost of a working flow, rather than the price per token. A cheap model that needs three tries can still be the cheap option. Here it was the cheapest by a long way.
Cheap models need a safety net. Flash made four mistakes across two rounds and fixed every one. That’s only possible because something told it, clearly and straight away, what went wrong. Power Automate checks the flow when it’s saved, and FlowStudio MCP turns that error into something an agent can act on. This is the same thing we wrote about in 91% Agent Recovery: agents will make mistakes, so what matters is helping them recover.
Prefer mistakes that fail at save time. The one mistake that slipped through to run time is the one that left junk in SharePoint. If your flow does something you can’t undo (sends an email, pays an invoice, posts to Teams), test it somewhere safe first, whatever the model.
A dry run helps. MAI Code 2 and GPT-5.6 Sol both checked their flow with a dry run before saving it. It costs nothing and catches mistakes before anything is saved.
So which model would I pick?
- Lots of small, safe flows, where a failed save costs nothing: MAI Code 2 Flash. It’s hard to argue with 32×.
- A flow with side effects, or one where I’m watching and want it done now: Claude Opus 5.5. Right first time and fastest, at a price in the middle of the pack.
- MAI Code 2 sits in between. Fewer slips than Flash, still 6× cheaper than Opus.
The fine print
This is one run per model per round, on two small flows. Take it as a good sign rather than a benchmark.
I have the FlowStudio Power Automate skills installed in Copilot, and nearly every run loaded one before it started. (Gemini skipped it in round 2 and passed anyway.) So this is mostly each model working with our skill and our MCP, which is how you’d actually use it. It doesn’t tell you how a model does on its own.
Opus ran at medium effort. The others ran at their default effort. Prices are Copilot’s on 2 December 2026, and MAI pricing is new, so check before you plan a budget around it.
Try it
FlowStudio MCP works with whichever model your agent runs on, MAI included. Pick a model in Copilot, connect FlowStudio MCP, and ask it to build a flow.
Start free at mcp.flowstudio.app.
Discussions