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.
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": "tp_get_peaks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | No | Bike | |
| days | No | ||
| pr_class | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |