Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

flow-toggle

Enable or disable a Power Automate flow by specifying its environment ID and flow ID, with an optional flag to control whether the flow is turned on or off.

Instructions

Enable or disable a flow

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "environmentId": "<environmentId>",
      "flowId": "<flowId>"
    },
    "name": "flow-toggle"
  }
}

Input Schema

NameRequiredDescriptionDefault
enableNoSet to true to enable, false to disable (default: true)
flowIdYesThe flow ID to toggle
environmentIdYesThe environment ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure and does not do so: it says nothing about required permissions, idempotency when the flow is already in the target state, whether toggling disrupts in-flight runs, or what the call returns. Only the mutation direction is conveyed, and that is already implied by the tool name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single five-word sentence with zero padding and the verb front-loaded. It is efficient, though the terseness tips into under-specification rather than being a model of compact completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Placeholder.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter already carries a description, including the enable default of true, so the description adds no meaning beyond structured data. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Enable or disable a flow" names a specific state-changing action on a specific resource, so the agent can tell it apart from flow-run or flow-list. It stops short of explicitly differentiating itself from siblings by name or noting the toggle semantics beyond the verb.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The action implicitly signals when to use it (turning a flow on or off), but there is no explicit guidance on alternatives such as flow-run, no prerequisites (e.g., whether the flow must be stopped first), and no conditions under which the tool should not be used.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.