List foods
list_foodsLists the person's food catalog and favourite dishes, optionally filtered by name, with the energy and macros each food holds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional name filter: one term, or several separated by commas. | |
| detail | No | Ask for the whole label instead of the four-value summary: all eight values on both bases, plus brand, description and what the food is measured in. Use it when the question is about a value the summary does not print — saturates, sugars, fibre or salt — or about how a food is recorded. It prints the same block a write returns, so one call answers for every food it lists. |