Look up a food
lookup_foodCalories, protein, carbs, fat and fiber of everyday foods from USDA FoodData Central (FNDDS): per 100 g, per household measure (1 cup, 1 large egg…), and for a weight you give.
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": "lookup_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | Also give the numbers for this many grams. | |
| limit | No | How many foods to return (5 by default). | |
| query | Yes | The food in plain words: "greek yogurt plain nonfat", "banana", "chicken breast rotisserie". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | Yes | ||
| query | Yes | ||
| source | Yes |