Skip to main content
Glama

List a chat flow's runs

list_flow_runs
Read-only

The run history of one chat flow, newest first: one run per contact that started it, with its status, the node it stopped at, an error, a skipReason when it did nothing (a cooldown, the daily cap, a closed window…) and its steps with the reason a failed step failed — the answer to "why did it not answer?". Read-only. Needs the organization's "Let AI assistants create and edit chat flows" setting (mcpFlowsEnabled; only the organization's OWNER can switch it on, in Settings → Organization → General → AI Assistants; without it the api answers 403 MCP_FLOWS_DISABLED) and a connection authorized with the flows permissions — one authorized before they existed must remove PostRite from the assistant and add it again.

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": {
      "flowId": "<flowId>"
    },
    "name": "list_flow_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many runs to return (max 100, default 30)
flowIdYesThe flow's ID (from list_flows)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
runsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only say readOnly/openWorld/non-destructive; the description layers on substantial behavior: ordering (newest first), cardinality (one run per contact that started it), the meaning of skipReason (cooldown, daily cap, closed window), and what failed steps report. It also discloses the gating mechanics — the mcpFlowsEnabled org setting, OWNER-only switch, the 403 MCP_FLOWS_DISABLED code, and the re-authorization requirement for older connections. This is exactly the context annotations cannot carry.

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?

The core purpose is front-loaded in the first clause, with ordering and payload in the same sentence. The prerequisites sentence is dense — a long EMS-style parenthetical with a settings path, an error code, and re-install instructions — but each element is actionable, so little is genuinely wasted.

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?

Output schema exists, yet the description still tells the agent what a run record contains and why it matters, which is a bonus rather than redundancy. For a read-only, three-parameter, auth-gated tool, the prerequisites and failure mode (403 MCP_FLOWS_DISABLED) are covered, leaving nothing an agent needs before invoking it.

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%, so flowId, limit (max 100, default 30) and organizationId are already fully documented in the schema. The description adds no syntax, format, default, or edge-case guidance for any parameter. Baseline 3 applies when the schema carries the parameter burden.

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?

Starts with a specific verb+resource framing: 'The run history of one chat flow, newest first: one run per contact' and enumerates what each run carries (status, stopped node, error, skipReason, steps). That is far more concrete than the title alone and implies flow-runs rather than automation-runs. It stops short of naming a sibling, so the agent must infer the split from the sibling list itself.

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

Usage Guidelines4/5

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

Frames the use case explicitly as diagnostic — 'the answer to "why did it not answer?"' — which tells the agent when to reach for it. It also states the prerequisites that must hold before calling (org setting on, flows-scoped authorization). It gives no exclusion or pointer to an alternative such as list_automation_runs, so the when-not side is missing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources