Record a threshold
set_thresholdRecord a field test threshold such as LTHR, LT1, HRmax, or FTP with an effective date, confirm before saving locally, and recompute affected activities when backdated.
Instructions
Record a field test result (LTHR, LT1, HRmax, FTP…) effective from a date; ask the user before saving. Stored in the local database only, never sent to Garmin; a row with the same date, param and source stays as it is (added false). A backdated row recomputes earlier activities from its date on. Returns the row and the value in effect today. Example: {"date":"2026-10-11","param":"lthr_run","value":171,"note":"30 min TT"}.
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": {
"date": "<date>",
"param": "<param>",
"value": "<value>"
},
"name": "set_threshold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day of the test, not in the future | |
| note | No | e.g. the test protocol | |
| param | Yes | Heart rates in bpm, ftp_w/run_ftp_w in W, css_s_per_100m in s per 100 m, run_threshold_pace_s_per_km in s per km | |
| value | Yes | In the unit of `param` | |
| source | No | test: measured in a field or lab test; manual: a value the user sets without a test | test |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |