tp_get_peaks
Scan recent workouts to retrieve personal records for a chosen sport. View top values for durations and distances over a specified time range.
Instructions
Get personal records by scanning recent workouts for a given sport.
Args: sport: Sport type — "Bike", "Run", "Swim", or "Hike" (default "Bike"). days: Number of days to scan (default 90, max 365). pr_class: Filter by PR class — "Power", "HeartRate", or None for all.
Scans workouts that have PRs and aggregates the best values per type. Shows the top record for each duration/distance across the time range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | No | Bike | |
| days | No | ||
| pr_class | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |