Food log
malai_get_food_logMALAI: Read what the user actually logged in MALAI across a date range: their real history, not a plan. Use for "what did I eat yesterday", "what did I have this week", "how has my protein been lately". Defaults to the last 7 days. Returns each entry with its entryId, meal and nutrition, and a total.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "malai_get_food_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | Last day, YYYY-MM-DD, inclusive. Defaults to today. | |
| startDate | No | First day, YYYY-MM-DD, in the user's time zone. Defaults to 6 days before today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| count | Yes | ||
| entries | Yes | ||
| summary | Yes | Totals across the returned entries. |