Nutrition log
get_nutrition_logGet an athlete's logged nutrition (Food Journey) over the last days: daily calorie and macro totals against targets, a day-by-day join of fueling with training and its rule-based flags (for example an under-fueled long-run day), and recent logged foods. Status no_data means nothing was logged in the window. A coach sees it only when the athlete shares training data.
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": {
"athlete_id": "<athlete_id>"
},
"name": "get_nutrition_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trailing days to read, 1-30. | |
| athlete_id | Yes | The athlete's user id: get_current_user's athlete_id for the connected account, or an id from get_coach_athletes or find_athlete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| targets | No | ||
| timezone | No | ||
| warnings | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| athlete_id | No | ||
| days_logged | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| window_days | No | ||
| daily_totals | No | ||
| user_content | No | Fields in this result that people wrote. | |
| fueling_flags | No | ||
| total_records | No | ||
| training_join | No | ||
| recent_records | No | ||
| weeks_returned | No | ||
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| session_definitions | No | Sessions that several rows of this result share by session_ref. | |
| content_block_fields | No | Column names of every content_blocks row, nested blocks rows included. | |
| adherence_pct_of_target | No | ||
| avg_calories_logged_days | No | ||
| avg_protein_grams_logged_days | No |