Log food
log_foodRecord one or more food items for a meal. Pass every item of the meal in one call. Returns the created entries and the day's running totals versus 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": {
"meal": "<meal>",
"items": "<items>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Calendar date YYYY-MM-DD in the user's timezone | |
| meal | Yes | A meal key from the user's meal plan (meals in the profile): breakfast, morning_snack, lunch, evening_snack, dinner, snack, other, or a custom key such as post_dinner. The meal's label is accepted too. | |
| items | Yes | ||
| contract_version | No | Copy the version printed here: 1.6.3. The server compares it with what it is running to tell whether your tool list is current. |