log_food
Log a food to a meal in your diary. Specify portion via serving amount and unit or servings multiplier. Use dry run to preview.
Instructions
Log a food to a meal in the diary. Specify the portion EITHER as serving_amount + serving_unit (e.g. 120 and 'g') OR as servings (a multiplier of the food's default serving). Set dry_run to preview.
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": {
"food_id": "<food_id>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Day to log to: 'YYYY-MM-DD', 'today', or 'yesterday'. | |
| meal | No | One of: breakfast, lunch, dinner, snacks. | snacks |
| dry_run | No | Preview the result without writing to the diary. | |
| food_id | Yes | 32-character hex food ID from search_food. | |
| servings | No | Multiplier of the food's default serving. | |
| serving_unit | No | Unit for `serving_amount`, e.g. 'g', 'mL', 'cup', 'oz'. | |
| serving_amount | No | Quantity in `serving_unit`, e.g. 120. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||