Nutrition
NutritionNutrition: Nutrition returns the nutrition facts for a generic whole food by name - calories and the core macronutrients per 100 grams straight from the USDA food composition database - plus, on paid plans, a full micronutrient panel and derived nutrition intelligence like calories per gram and the protein, fat and carbohydrate share of calories. (Cost: 2 credits)
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": "<food>"
},
"name": "Nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food | Yes | Name of the food to look up (e.g. banana, chicken breast, olive oil) | |
| grams | No | Serving weight in grams to scale the nutrition panel to. Defaults to a per-100-gram basis. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |