log_meal
Records an itemized meal with macros and returns its meal ID plus the day's totals against targets.
Instructions
Log a meal you have already itemized with macros. Use this for any food except a saved meal the user names (use log_template). Returns meal_id and the day's totals vs. targets.
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": {
"items": "<items>",
"source": "<source>",
"confidence": "<confidence>",
"request_id": "<request_id>"
},
"name": "log_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | One entry per food | |
| notes | No | ||
| source | Yes | Where the numbers came from | |
| eaten_at | No | ISO 8601. No offset means local time. Omit for now. | |
| meal_type | No | Omit to infer from local time of day | |
| confidence | Yes | How sure the estimate is | |
| request_id | Yes | Fresh UUID per write; reuse it only when retrying |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||