list_runs
List runs within a date range for compact Runner State summaries, or retrieve one run’s saved splits, structured segments, and detailed heart-rate metrics by ID.
Instructions
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. Individual run reads expose structured min_hr, hr_series (minute averages, at most 600 points), hr_zones and reported_avg_pace_sec_per_mi, plus recorded_detail with heart rate, laps and device metrics the run page shows.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_runs"
}
}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. |