Caffeine + nicotine pharmacokinetic timing
caffeine_protocolModel caffeine (and optional nicotine) blood concentration, performance gain, and side-effect curves over a race using a 1-compartment oral PK model. Source: ham.run ergogenic module. Pass useMyData:true to overlay body weight from the connected athlete profile.
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": {
"finishMin": "<finishMin>",
"cafDoseMgPerKg": "<cafDoseMgPerKg>",
"cafTimingMin": "<cafTimingMin>",
"extraCafDoses": "<extraCafDoses>",
"nicOn": "<nicOn>",
"nicDoseMg": "<nicDoseMg>",
"nicTimingMin": "<nicTimingMin>",
"nicForm": "<nicForm>"
},
"name": "caffeine_protocol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nicOn | Yes | Enable nicotine co-administration model. | |
| nicForm | Yes | Nicotine delivery form. | gum |
| finishMin | Yes | Expected race duration in minutes. | |
| nicDoseMg | Yes | Nicotine dose in mg. | |
| useMyData | No | Overlay body weight from the connected athlete profile. | |
| bodyWeightKg | No | Body weight in kilograms. | |
| cafTimingMin | Yes | Minutes BEFORE race start that caffeine is taken. | |
| nicTimingMin | Yes | Minutes before race start for nicotine. | |
| extraCafDoses | Yes | In-race top-up doses, e.g. with gels. | |
| cafDoseMgPerKg | Yes | Pre-race caffeine dose, mg/kg. 3–6 mg/kg is the evidence-based range. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Echo of resolved input parameters. | |
| giRisk | Yes | GI distress risk level. | |
| timeSavedMin | Yes | Estimated time saved, minutes. | |
| hrElevationBpm | Yes | Expected HR elevation from caffeine, bpm. | |
| perfCheckpoints | Yes | Performance checkpoints at ~10 min intervals. | |
| totalCaffeineMg | Yes | Total caffeine consumed, mg. | |
| peakRpeReduction | Yes | Peak RPE reduction from ergogenic effect. | |
| caffeineDoseEvents | Yes | Timestamped dose events. | |
| avgPerformanceGainPct | Yes | Average performance gain over race duration, %. |