Compute trail-derived biological age
tg.longevity.bioAge.computeDeterministic compute tool (not a dataset read). Estimates trail-derived biological age from one hike: VO2max from grade-adjusted effort versus heart-rate reserve, age-graded against population reference curves, then pooled with resting heart rate and optional overnight HRV. Hiking modality only; low-intensity Zone 1 efforts are flagged as unreliable. Invoked via tools/call; it has no REST dataset route, so its endpoint is the /mcp transport.
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": {
"age": "<age>",
"resting_hr": "<resting_hr>",
"distance_mi": "<distance_mi>",
"elevation_gain_ft": "<elevation_gain_ft>",
"moving_time_min": "<moving_time_min>",
"avg_hr": "<avg_hr>"
},
"name": "tg.longevity.bioAge.compute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Chronological age in years. | |
| avg_hr | Yes | Average heart rate over the hike (bpm). | |
| fasted | No | Whether the hike was fasted (TrailGenic protocol flag; contextual, does not change the estimate). | |
| max_hr | No | Known max heart rate (bpm). Optional; a Tanaka estimate is used if omitted. | |
| resting_hr | Yes | Resting heart rate (bpm). | |
| distance_mi | Yes | Hike distance (miles). | |
| overnight_hrv | No | Overnight heart-rate variability (ms). Optional; tightens the autonomic side of the estimate. | |
| moving_time_min | Yes | Moving time (minutes). | |
| elevation_gain_ft | Yes | Total elevation gain (feet). |