upsert_food_records
Add new food records or update existing ones after user confirmation; include a record id to change an entry and reuse the request id when retrying uncertain results.
Instructions
Add or update food records after user confirmation. Supply the record id for updates.
Obtain uniquekey, per-100g ntr and any units from official search or the saved custom food. Ask the user to resolve uncertain food matches, meal types, amounts or units. Reuse client_request_id if retrying the same request after an uncertain result.
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": {
"foods": "<foods>"
},
"name": "upsert_food_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | Yes | ||
| client_request_id | No |