filter_by_nutrient
Filter foods by nutrient ranges. Specify min and max values for nutrients like protein, fat, or energy to identify foods meeting your dietary targets.
Instructions
按营养素范围筛选食物,如查找高蛋白、低脂肪的食物
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": {
"nutrient": "<nutrient>"
},
"name": "filter_by_nutrient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | 最大值(含) | |
| min | No | 最小值(含) | |
| sort | No | 排序方向,默认降序 | desc |
| limit | No | 返回数量上限,默认20 | |
| nutrient | Yes | 营养素字段名 |