Log shared portion
log_shared_portionRecord grams of a batch eaten by someone else. It lowers the batch's grams left and is not added to the user's food log.
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": {
"batch": "<batch>",
"grams": "<grams>"
},
"name": "log_shared_portion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | No | Who ate it, if the user says | |
| date | No | Calendar date YYYY-MM-DD in the user's timezone | |
| batch | Yes | The batch's id or name | |
| grams | Yes |