Skip to main content
Glama

Mise — Meal Planner, Grocery List & Calories

Calorie Counter & Food Diary

log_calories

Log what I ate and count calories. Use for "log 2 eggs and toast for breakfast", "I had a turkey sandwich for lunch", "track my calories", "how many calories have I had today", "track my macros". Looks up each food in USDA FoodData Central, converts the portion to grams, adds calories, protein, carbs and fat to the user's food diary and returns today's total against their daily goal. Send foods with a quantity and US unit (each, cup, tbsp, oz, slice). Call with no foods to read today's totals. Keep the returned diary_id and pass it on later calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoYYYY-MM-DD in the user's local time. Defaults to today (UTC).
mealNosnack
foodsNoWhat the user ate, e.g. [{"name":"banana","quantity":1,"unit":"each"},{"name":"peanut butter","quantity":2,"unit":"tbsp"}].
recipeNoLog servings of a recipe from plan_week or generate_recipe.
diary_idNoFood diary id from an earlier log_calories call. Omit on first use; a new diary is created. Remember and reuse it.
daily_goalNoDaily calorie goal; saved on the diary.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayYes
dateYes
loggedYes
diary_idYes
nutrition_sourceYes
unresolved_foodsYesIngredients that could not be matched to USDA FoodData Central; their calories are NOT included. Ask the user for a weight (oz/g) or a clearer name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources