list_runs
List runs within a date range, or return full saved detail for one run when run_id is provided. Range reads stay compact and return a Runner State summary first. A run_id read returns that run's stored splits and structured segments plus the detailed metrics Elias needs for interval analysis.
DETAILED RANGE: at most 92 days, defaulting to the last 7 days. For totals over any range or all history, use aggregate with a numeric field (except when counting sessions). The aggregate mode returns compact summaries, bypasses the detailed-list date cap, and can group by day, month or year.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | Numeric field to aggregate; needed except when counting all runs. | |
| run_id | No | Specific run UUID. When provided, returns the full saved run including splits and structured segments and ignores the date range. | |
| end_date | No | End of date range, YYYY-MM-DD; defaults to today. | |
| group_by | No | Optional date grouping for aggregates; omitted returns one total. | |
| aggregate | No | Return a numeric summary without per-run rows; detailed behavior is unchanged when omitted. | |
| start_date | No | Start of date range. Format: YYYY-MM-DD. Optional. Defaults to 7 days ago. | |
| all_history | No | For aggregate queries, start at the earliest stored run instead of the recent default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |