search_official_food
Search Xunji's official foods by keyword to retrieve per-100g nutrition, IDs, unique keys, and units for accurate diet records.
Instructions
Search Xunji's official foods. Prefer foods over the compact d array in the result.
Each d row is [id, name, cal, carb, fat, protein, foodpic, uniquekey, units]. Nutrition values are per 100 g. Preserve uniquekey, ntr and units when recording a match.
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": {
"keyword": "<keyword>"
},
"name": "search_official_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| keyword | Yes |