get_performance_trend
Track running or cycling pace/power over time, see each activity's value and average HR, and use the regression slope to detect performance trends.
Instructions
Get per-activity pace or power over time, with the regression slope.
Returns each activity's raw value and average HR, plus the slope across them. No HR normalisation is applied — normalise against the athlete's own thresholds from get_athlete_context if you want that.
Args: metric: Metric to track — "pace" (default) or "power" sport: Sport type — "running" or "cycling" days: Number of days to analyze (default 90)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| sport | No | running | |
| metric | No | pace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |