mfp_get_recent_foods
Retrieve recently used foods from MyFitnessPal for quick re-entry into your diary. Set an optional limit and choose between markdown or JSON output.
Instructions
Get recently used foods from MyFitnessPal.
Uses the legacy diary-add AJAX endpoint that still works when newer
account pages like /food/mine redirect away from authenticated sessions.
Args: params: GetFoodCollectionInput containing: - limit (int, optional): Max results (default 10, max 100) - response_format (str): 'markdown' or 'json'
Returns: str: List of recently used foods
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_get_recent_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |