get_food_nutrients
Retrieve macronutrient data—calories, protein, carbs, fat, fiber, sugar—for any food or serving size by entering a descriptive query.
Instructions
Look up macros (calories/protein/carbs/fat/fiber/sugar) for a food query via API Ninjas (cached).
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": {
"query": "<query>"
},
"name": "get_food_nutrients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | e.g. '1 medium banana' |