get_workout_heartrate
Retrieve the heart rate series recorded during a workout and set an optional sample cap to limit or downsample long series for analysis.
Instructions
Get the heart rate series recorded during a workout.
Args: workout_id: UUID of the workout. max_samples: Cap on series length (default 500, max 5000; null for the raw series). Longer series are downsampled by averaging over evenly-sized time buckets, so shape and peaks survive — raw counts grow with workout duration (a 3 h run is ~2000 samples).
Returns: List of {timestamp, value} heart rate samples in workout order.
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": {
"workout_id": "<workout_id>"
},
"name": "get_workout_heartrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workout_id | Yes | ||
| max_samples | No |