Food nutrition lookup
malai_search_foodsMALAI: Look up nutrition for a food in MALAI's database (USDA FoodData Central, US foods): calories, protein, carbs, fat, fiber, saturated fat and sugar per serving (or per 100 g), plus the share of calories from protein. Use for "how much protein is in cottage cheese", "compare tofu and chicken", "is a turkey sandwich high in protein". A null value means unknown, not zero. Don't use to log food (that needs a MALAI account: malai_how_to_connect).
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": "malai_search_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results, 1–10. Default 5. | |
| query | Yes | Food name, e.g. "cottage cheese 2%". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| query | Yes | ||
| source | Yes | ||
| message | No | Present when nothing matched. | |
| results | Yes |