log_food
Store a confirmed food entry with calories and protein once the user approves the estimate.
Instructions
Store a confirmed food entry. The agent supplies calories and protein (estimated with its own knowledge or web search). Requires userConfirmed: true.
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": {
"rawEntry": "<rawEntry>",
"calories": "<calories>",
"protein": "<protein>",
"userConfirmed": "<userConfirmed>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD date. Defaults to today in the profile timezone. | |
| notes | No | Optional assumptions or context, e.g. 'assumed 2 large eggs'. | |
| source | No | Optional source, e.g. a URL used to estimate. | |
| protein | Yes | Protein grams to log. | |
| calories | Yes | Calories to log. | |
| rawEntry | Yes | Food description, e.g. '2 eggs and toast'. | |
| timestamp | No | ISO timestamp. Defaults to now. | |
| userConfirmed | Yes | Must be true; the user confirmed the estimate before logging. |