Analyse fat and carbohydrate use
analyze_substrateAnalyses fat and carbohydrate oxidation from gas exchange in an uploaded recording: FATMAX, peak fat oxidation, the crossover to carbohydrate and gross efficiency, with stage means and fitted curves. For the headline FATMAX numbers alone, compute_metrics with ["substrate_summary"] costs about a sixth of the tokens.
Returns cpet_id and one envelope in results: status ("ok" or
"not_analysable"), findings, quality (good/acceptable/poor, of the INPUT,
not of the answer), confidence ("low" or "normal" with the reasons, never a
number), notes, provenance, and error/message when it could not run.
Counts one unit of the key's monthly allowance, a repeated call included.
Licensed separately (get_capabilities lists this key's analyses).
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": {
"cpet_id": "<cpet_id>"
},
"name": "analyze_substrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curves | No | Also return the sampled curve points, for plotting. Off by default: the points are the fitted cubic evaluated on a grid and double the envelope. Measured values are unaffected. | |
| cpet_id | Yes | Handle from upload_cpet, create_upload or get_sample_cpet. |