create_food_entry
Adds a food diary entry from a food ID, serving ID, and meal type. Log meals and track nutrition after checking profile authentication.
Instructions
Add a food diary entry. Requires food_id, serving_id, and meal type. Requires profile auth (check_auth_status first).
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>",
"food_entry_name": "<food_entry_name>",
"serving_id": "<serving_id>",
"number_of_units": "<number_of_units>",
"meal": "<meal>"
},
"name": "create_food_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format (default today) | |
| meal | Yes | Meal type | |
| food_id | Yes | Food ID | |
| serving_id | Yes | Serving size ID | |
| food_entry_name | Yes | Name for the food entry | |
| number_of_units | Yes | Number of serving units |