mfp_search_food
Search the MyFitnessPal food database by query to get a list of matching foods with calories, serving size, and brand information.
Instructions
Search the MyFitnessPal food database for food items.
Returns a list of matching foods with their name, brand, serving size,
calories, and MFP ID (which can be used with mfp_get_food_details).
Args:
params: SearchFoodInput containing:
- query (str): Search query (e.g., 'chicken breast')
- limit (int): Maximum results to return (default 10)
- response_format (str): 'markdown' or 'json'
Returns:
str: List of matching food items with basic nutrition info
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": {
"params": "<params>"
},
"name": "mfp_search_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |