compare_runs
Summarize and compare filtered sets of the user's runs. Pass a (and optionally b) as a filter: { type (just_a_run|easy|tempo|long|race|intervals|trail; omit = all types), min_distance_m, max_distance_m, preset (this_week = calendar week Mon→now | last_7_days = rolling | this_month | last_30_days | this_year) or from/to ISO timestamps supplied together (omit both = all time) }. type all = every type; an untyped run (e.g. a Garmin Connect run) matches by its run_category. With a only: returns that set's count, date range, and per-metric {avg, min, max} for pace_s_per_km, heart_rate_bpm, cadence_spm, elevation_gain_m, distance_m — for pace, min = fastest; for distance, max = longest. With a and b: also returns delta (b.avg - a.avg) per metric. Aggregate only — use get_runs for individual runs, get_progression for the trend. Runs under 1 km are excluded as noise. Walk-paced runs (moving pace slower than 9:00/km, or under 130 steps/min slower than 7:00/km, never interval sessions or runs at 150 steps/min or more) are left out and counted in walk_paced_excluded, absent when none. A null metric was not recorded; never treat it as zero. Copies of the same run from two apps are counted once; duplicates_collapsed says how many were folded. A row whose own span is over 12 hours is never folded, so a duplicated ultra beyond that still counts as stored.
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": {
"a": "<a>"
},
"name": "compare_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No |