Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

flow-list-runs

Retrieves run history for a Power Automate flow, showing past executions and statuses to help monitor activity and troubleshoot failures by environment and flow ID.

Instructions

Get run history for 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-list-runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of runs to retrieve (default: 10)
flowIdYesThe flow ID to get runs for
environmentIdYesThe environment ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose ordering (newest first?), pagination behavior, what a run record contains, whether the default count of 10 is a cap, or any permission requirements for reading run history.

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 front-loaded sentence with no filler words. It is efficient, though the brevity shades into under-specification rather than true concision.

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

Completeness2/5

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

For a tool with three parameters, no annotations, and no output schema, one sentence leaves meaningful gaps: the shape and ordering of returned run data, the meaning and limits of count, and failure modes for invalid flow or environment IDs are all unstated.

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 description coverage is 100%, and the schema already documents count (default 10), flowId, and environmentId. The description adds nothing beyond the schema, so the baseline of 3 applies — the schema does the heavy lifting here.

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?

"Get run history for a flow" states a concrete verb (get) and resource (run history) scoped to a flow, so an agent can tell it retrieves past executions rather than defining or toggling flows. It stops short of distinguishing itself from the sibling flow-run, which likely fetches a single run rather than history.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites (e.g. that a valid environmentId and flowId are needed), and does not point to flow-run or flow-list as alternatives. The agent must infer that this is the bulk-history tool versus the single-run tool.

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