Get food nutrition details
get_foodUse this when the user wants the full nutrition of one food, or the values for a given amount (for example 150 g of rice). Returns calories, macros, sugar, saturated fat, salt, potassium, glycemic index and allergens.
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_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | ||
| food_id | Yes | ||
| language | No |