Personal bests and race estimates
get_personal_bestsCalculate personal bests for 1 km through marathon from Garmin activities, with race-time estimates for 5 km to marathon based on recent efforts.
Instructions
Fastest 1 km, 1 mile, 5 km, 10 km, half and marathon across many activities, each with date, activity, pace, avg HR and the next two best efforts; plus race time estimates for 5 km to marathon from the last 90 days of the range: your actual time where you ran the distance, otherwise Riegel from the effort closest in distance. Use for 'what's my 5k PB', 'fastest half this year', 'what could I run a 10k in'. These are computed from the user's activity files (fastest continuous stretch within each run), NOT Garmin's official personal records, which the Personal API doesn't provide; estimates are estimates, not Garmin's race predictor. Analyses the newest 150 matching activities per call. The first call over a long range is slow (each activity's file is downloaded once, then cached). The result starts with complete. If complete is false (the fields are then named provisional_*), the bests are NOT final: call again with the same arguments (it continues from the cache) until complete is true, or tell the user the results are partial. Defaults to the last 365 days and running.
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": "get_personal_bests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Pace unit. Defaults to the user's Garmin unit setting. | |
| period | No | Named period resolved in the user's time zone (weeks start Monday). Use instead of start_date/end_date. | |
| end_date | No | Last day, YYYY-MM-DD, inclusive. Defaults to today. | |
| distances | No | Distances to report. Defaults to all six. | |
| start_date | No | First day, YYYY-MM-DD, inclusive. Defaults to 365 days ago. | |
| activity_type | No | Parent type key, e.g. running (includes trail and treadmill), walking, hiking. | running |