get_nutrition
Get complete nutrition facts per 100g for a food by ID. Provide the food ID to receive detailed nutrient values including calories, macros, and more.
Instructions
获取某个食物的完整营养成分(每100g),需提供食物ID(通过 search_food 获取)
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": {
"food_id": "<food_id>"
},
"name": "get_nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | 食物ID |