search_foods
Search the FatSecret food database by name or keyword to find food IDs and basic nutrition details (calories, protein, carbs, fat) for use with get_food.
Instructions
Search the FatSecret food database by name or keyword. Returns a paginated list of foods with basic nutrition info (calories, protein, carbs, fat) per serving. Use this to find food IDs for use with get_food.
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": "search_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Food name or keyword to search for (e.g. 'banana', 'chicken breast') | |
| region | No | ISO 3166-1 alpha-2 region code (e.g. 'US', 'GB') | |
| food_type | No | Filter by food type | all |
| max_results | No | Number of results to return (1–50, default 10) | |
| page_number | No | Zero-based page offset for pagination (default 0) |