log_food
Quick-add a meal with calories, carbs, protein, and fat to a Garmin nutrition log. The meal period is determined automatically from the time—no food ID needed.
Instructions
Quick-add a food entry with macro values to the nutrition log
Logs food directly by name and macros without requiring a food ID. Uses Garmin's Quick Add feature. The meal is determined automatically by matching meal_time against each meal's startTime/endTime window; falls back to SNACKS if no window matches.
Args: meal_date: Date in YYYY-MM-DD format name: Display name for the food entry calories: Calories (kcal) carbs: Carbohydrates in grams protein: Protein in grams fat: Fat in grams meal_time: Time in HH:MM:SS format (account timezone)
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": {
"meal_date": "<meal_date>",
"meal_time": "<meal_time>",
"name": "<name>",
"calories": "<calories>",
"carbs": "<carbs>",
"protein": "<protein>",
"fat": "<fat>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | Yes | ||
| name | Yes | ||
| carbs | Yes | ||
| protein | Yes | ||
| calories | Yes | ||
| meal_date | Yes | ||
| meal_time | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |