list_runs
List runs in a date range, or the full saved detail of one run when run_id is given. range read: compact, Runner State summary first. Detailed range: at most 92 days, default last 7. run_id read: that run's stored splits and structured segments plus the detailed metrics Elias needs for interval analysis: structured min_hr, hr_series (minute averages, at most 600 points), hr_zones and reported_avg_pace_sec_per_mi, plus recorded_detail with the heart rate, laps and device metrics the run page shows. aggregate: totals over any range or all history -> aggregate + a numeric field (count needs none). Compact summaries, no detailed-list date cap, optional 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; not needed for a plain run count. | |
| run_id | No | Run UUID; returns the full saved run (splits, structured segments) and ignores the date range. | |
| end_date | No | YYYY-MM-DD; default today. | |
| group_by | No | Date grouping for aggregates; omit for one total. | |
| aggregate | No | Numeric summary without per-run rows. | |
| start_date | No | YYYY-MM-DD; default 7 days ago. | |
| all_history | No | Aggregates: 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. |