---
title: "Get Automation Run Stats"
description: "Aggregate run counts for an automation over a period: how many completed, failed, or were stopped."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.speakai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Automation Run Stats

`get_automation_run_stats` is a tool in the Speak AI MCP server. Aggregate run
counts for an automation over a period: how many completed, failed, or were stopped.

## What does it do?

Aggregate run counts for an automation over a period: how many completed, failed, or
were stopped.

## Parameters

`get_automation_run_stats` takes 2 parameters, 1 of them required.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `automationId` | string | Yes | Unique identifier of the automation |
| `days` | number | No | How many days back to count, 1-90. The run ledger is kept for 90 days, so that is the whole window. |

## Behaviour

The Speak AI MCP server publishes these behaviour hints for
`get_automation_run_stats`.

- Only reads data. Does not modify your workspace.
- Does not delete or overwrite existing data.
- Repeating an identical call is safe.
- Stays inside Speak AI. Does not reach other systems.

## Related

- [Automations](/mcp/tools/automations/) lists the rest of the Automations category.
- [Tool reference](/mcp/tools/) lists every Speak AI MCP server tool.
- [MCP server](/mcp/) covers setup, supported clients, and what agents can do once
  connected.

Source: https://docs.speakai.co/mcp/tools/automations/get_automation_run_stats/index.mdx
