get_lactate_threshold
Retrieve current lactate threshold speed, heart rate, and power, or fetch daily, weekly, monthly, or yearly history for a chosen date range from Garmin Connect.
Instructions
Lactate threshold: the latest values (default), or history over a date range when latest is false. Defaults latest=true, aggregation="daily". TWO DIFFERENT branches: latest=true returns {speed_and_heart_rate, power} from two GETs; latest=false (requires startDate, throws otherwise) returns {speed, heart_rate, power} from three GETs.
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_lactate_threshold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latest | No | ||
| endDate | No | Calendar date, YYYY-MM-DD (UTC) | |
| startDate | No | Calendar date, YYYY-MM-DD (UTC) | |
| aggregation | No |