compare_to_baseline
Compare one run to a baseline set of the user's runs: today's pace/HR/cadence vs the baseline averages + delta + how many runs matched. By default the baseline is the user's recent runs of the SAME TYPE and SIMILAR DISTANCE (±20% of this run; last n, default 5, the subject excluded) — a like-for-like comparator. An untyped subject uses its run_category. Override with baseline: { type: a specific tag, or "all" for every type; min_distance_m; max_distance_m — an explicit band overrides the ±20% default }. Absent metrics are excluded from the average, never counted as zero. Runs under 1 km are excluded from the baseline. Walk-paced runs are left out of the baseline. today may carry a clock_contradiction block: the subject run is never quarantined, because it is the run you were asked about, but when its own two clocks contradict each other its pace is priced on a duration its wall clock cannot support and every delta here is meaningless — say that rather than read the comparison.
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": {
"run_id": "<run_id>"
},
"name": "compare_to_baseline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| run_id | Yes | ||
| baseline | No |