Plugin
power-automate
Plugin Version
2.1.0
Skill / Command
flowagent MCP tools: edit_flow, diagnose_run, get_run_action_repetitions
Bug Description
Three flowagent MCP tools fail immediately with the same error pattern before even validating their input parameters: ctx.getClient(...).<method> is not a function (editFlow, diagnoseRun, getRunActionRepetitions respectively). This suggests the plugin's internal client doesn't have these three methods implemented/bound in this build, even though the tools are advertised with a complete parameter schema.
Steps to Reproduce
Call any of the three tools with valid parameters, e.g.:
edit_flow with { flow, env, dryRun: true, operations: [{ op: "remove", path: "actions/.../someAction" }] }
diagnose_run with { flow, env, run }
get_run_action_repetitions with { flow, env, run, action }
Expected Behavior
The tool should execute (or return a domain-specific validation error if the input is wrong).
Actual Behavior
Immediate error for all three:
ctx.getClient(...).editFlow is not a function
ctx.getClient(...).diagnoseRun is not a function
ctx.getClient(...).getRunActionRepetitions is not a function
Relevant Logs / Screenshots
See error messages above (errorName: "TypeError", code: "tool-error").
Environment
- OS: Windows 11 Pro 10.0.26200
- Claude Code: 2.1.220
- PAC CLI: 2.6.4
Workaround Used
- For editing a flow: use
preview_update + update_flow with the full definition instead of edit_flow.
- For inspecting a failed run: use
get_run_actions/get_run_details instead of diagnose_run/get_run_action_repetitions (limitation: these don't surface the deep error message of an action like RunUIFlow_V2).
🤖 This issue was created using the /report-issue skill.
Plugin
power-automate
Plugin Version
2.1.0
Skill / Command
flowagent MCP tools:
edit_flow,diagnose_run,get_run_action_repetitionsBug Description
Three flowagent MCP tools fail immediately with the same error pattern before even validating their input parameters:
ctx.getClient(...).<method> is not a function(editFlow,diagnoseRun,getRunActionRepetitionsrespectively). This suggests the plugin's internal client doesn't have these three methods implemented/bound in this build, even though the tools are advertised with a complete parameter schema.Steps to Reproduce
Call any of the three tools with valid parameters, e.g.:
edit_flowwith{ flow, env, dryRun: true, operations: [{ op: "remove", path: "actions/.../someAction" }] }diagnose_runwith{ flow, env, run }get_run_action_repetitionswith{ flow, env, run, action }Expected Behavior
The tool should execute (or return a domain-specific validation error if the input is wrong).
Actual Behavior
Immediate error for all three:
Relevant Logs / Screenshots
See error messages above (
errorName: "TypeError",code: "tool-error").Environment
Workaround Used
preview_update+update_flowwith the full definition instead ofedit_flow.get_run_actions/get_run_detailsinstead ofdiagnose_run/get_run_action_repetitions(limitation: these don't surface the deep error message of an action likeRunUIFlow_V2).🤖 This issue was created using the
/report-issueskill.