malai_get_today_nutrition
Today's nutrition
MALAI: Get what the user has eaten today against their MALAI targets: calories, protein, carbs, fat and fiber eaten vs target, what is left (especially protein), and how many entries are logged. Use for "how am I doing today", "how much protein do I have left", "am I on track", or before suggesting what to eat. These are the user's real logged numbers; do not estimate them.
無需輸入參數。
MALAI: Log food or drink the user says they ate into their MALAI food log, from their own words, e.g. "2 boiled eggs", "a protein shake", "half my chicken rice bowl". Use whenever the user says they ate, drank, or want to log something. Step 1: call with text only; MALAI returns matching options from its food database and the user's saved recipes. Step 2: confirm the right option with the user (or pick the clear best match), then call again with itemId, itemType and amount/unit. Returns what was logged and today's updated protein. Pass requestId on step 2 so a retry never logs twice. The returned entryId identifies the entry.
輸入參數mealtext必填unitamountitemIditemTyperequestIdconsumedAtrecommendationId
malai_suggest_next_meal
Next meal ideas
MALAI: Get personalised ideas for the user's next meal or snack, chosen by MALAI from their saved recipes and MALAI's GLP-1-friendly recipes to close today's protein gap at this time of day. Use for "what should I eat", "what's for dinner", "I'm hungry", "something light with protein". Returns up to 3 options with protein and calories. To log one, call malai_log_food with the values in its logWith field.
無需輸入參數。
malai_get_food_log
Food log
MALAI: Read what the user actually logged in MALAI across a date range: their real history, not a plan. Use for "what did I eat yesterday", "what did I have this week", "how has my protein been lately". Defaults to the last 7 days. Returns each entry with its entryId, meal and nutrition, and a total.
輸入參數endDatestartDate
malai_get_nutrition_targets
Nutrition targets
MALAI: Read the user's daily nutrition targets from MALAI: calories, protein, carbs, fat, fiber, plus BMR and TDEE. MALAI calculates these from the user's profile and GLP-1 needs; use them exactly as given rather than calculating your own. Use when the user asks about their goals, their protein target, or whether an amount is enough.
無需輸入參數。
malai_get_saved_recipes
Saved recipes and foods
MALAI: List the recipes and foods the user saved in MALAI, with the meal times each is marked for and per-serving nutrition. Use for "what recipes do I have", "show my saved meals", or to suggest something the user already likes.
輸入參數slottype
malai_get_body_profile
Body profile
MALAI: Read the user's body profile in MALAI: age, sex, height, weight, activity level, goal and units. Use before advice that depends on their body or goal. If isPlaceholder is true the profile was never filled in; tell the user and suggest completing it in the MALAI app rather than quoting numbers based on it.
無需輸入參數。
malai_search_foods
Food nutrition lookup
MALAI: Look up nutrition for a food in MALAI's database (USDA FoodData Central, US foods): calories, protein, carbs, fat, fiber, saturated fat and sugar per serving (or per 100 g), plus the share of calories from protein. Use for "how much protein is in cottage cheese", "compare tofu and chicken", "is a turkey sandwich high in protein". A null value means unknown, not zero. Don't use to log food (that needs a MALAI account: malai_how_to_connect).
輸入參數limitquery必填
malai_calculate_protein_target
Protein target
MALAI: Calculate a daily protein range for someone on a GLP-1 medication from their body weight: 1.2–1.6 g per kg, the 2025 joint advisory range for weight loss, split into per-meal amounts. Same method as MALAI's protein calculator. Use for "how much protein should I eat on Zepbound", "I weigh 210 lb, what's my protein target". Don't use for a signed-in user's saved MALAI target (that is malai_get_nutrition_targets).
輸入參數weight必填weight_unit必填meals_per_day
malai_calculate_daily_targets
Calorie and macro targets
MALAI: Estimate daily calories, protein, carbs, fat and fiber from sex, age, height, weight, activity and goal, with MALAI's safety limits (a calorie floor and a cap on the rate of loss). Same calculator the MALAI app uses. Use for "how many calories should I eat on Wegovy", "what macros to lose 1 lb a week". Adults only. Don't use for a signed-in user's saved targets (that is malai_get_nutrition_targets).
輸入參數age必填sex必填goalheight必填weight必填activityheight_unit必填weight_unit必填rate_per_week
malai_get_medication_guide
GLP-1 medication guide
MALAI: Get MALAI's guide to a GLP-1 medication (Ozempic, Wegovy, Mounjaro or Zepbound): dose steps, common side effects with trial frequencies and food tips, what to eat, treatment phases, the first week, and FAQs, citing prescribing information. Use for "what are Mounjaro side effects", "what should I eat in my first week on Wegovy". Never use it to recommend a dose change, skipping or stopping; tell the user to ask their prescriber.
輸入參數sectionsmedication必填