close_today
ChatGPTMarks a day closed in BurnWeek when the user is done eating for it: 'close the kitchen', 'close today', 'that's it for today, I'm done eating'. Today by default, or a past date. Closing again keeps the first close time, and later logging does not reopen it; reopen:true opens the day again. Changes no meals, targets or library items. Not for logging food, reminders or a future day. Returns the date, closed and the first close time (closedAt).
delete_meal
ChatGPTUse this when the user wants a logged entry gone: 'delete the salad I logged', 'undo that' / 'scratch that, I didn't eat it' (the meal just logged), or 'take the rice out of that' / 'I didn't have the fries' (pass componentIds to remove only those items). Also handles: the legacy timestamp id. Removing the last item deletes the meal. Use ids from the most recent result and ask when ambiguous. Use also when the user says they did not end up eating something already logged ('I skipped the dessert after all'). Do not use for changing amounts or names (edit_meal). Returns the day state after removal, and the surviving meal when items were removed. Tip: read next[].
delete_my_account
ChatGPTDeletes the user's BurnWeek account and all of its data, e.g. 'delete my BurnWeek account', 'erase all my data'. Two steps: the first request, without confirmationCode, deletes nothing and returns what will be deleted and a 6-digit confirmation code; only a second request carrying that code deletes, and only after the user has clearly said yes. It deletes the account for every app at once. For 7 days the user can restore it by signing in to the BurnWeek app; after that it is erased for good and cannot be undone. Not for deleting one meal or clearing a day. Returns the summary and code, or the confirmation that the account is deleted.
delete_saved_item
ChatGPTUse this when the user wants to remove something saved: a recipe, a favourite, a recurring rule, or a meal from a day's plan. Also handles: 'unstar', 'stop repeating', 'take that off tomorrow' (kind=planned needs date). Use also when the user says they stopped a saved routine or no longer want a saved dish kept. Do not use for a logged meal (delete_meal) or to skip one day of a recurring rule (set_recurring with skipDate). Returns removed, the item's name and the remaining rows for that kind. Tip: read next[].
edit_meal
ChatGPTUse this when the user corrects a logged meal: 'make the rice 200 g', 'the potatoes were 350 cal', 'add 20 g butter to that', 'rename it', 'that was dinner', 'that was yesterday'. Also handles: per-item edits (updateComponents), new items (addComponents), splitting a meal into its ingredients (replaceComponents: ONE call, never addComponents + delete), rename/type/day move and a whole-meal rescale (portionGrams). Swap an ingredient by renaming that item (updateComponents[].name): only it is re-priced, same weight; user-stated values are stored verbatim. Pass expectedRevision when you have it. Use also when the user casually revises food they just logged ('it had cheese too'). Do not use for removing items or the meal (delete_meal) or logging a new meal (log_meal). Returns the updated meal and day state. Tip: read next[].
find_food
ChatGPTUse this when the user wants to find or re-log something BurnWeek already knows — favourites, frequent meals, recent meals (with ids), saved recipes, scanned barcodes, recurring rules — or to fetch one logged meal in full by mealId. Also handles: browsing without a query, one library only (kinds), one meal with componentIds and revision (mealId). Use also when the user wants 'what I had last time', 'my usual' or 'that soup I made' without naming BurnWeek. Do not use for logging new food or generic nutrition questions. Returns rows per kind, meal when mealId was given, and log_meal pre-filled for the top matches. Tip: read next[].
get_feedback_status
ChatGPTReports what happened to feedback the user sent to BurnWeek: 'did they fix my bug report?', 'status of my feedback'. Read-only; the user's own reports only. Not for sending feedback. Returns each report's status — received (not reviewed yet), triaged, planned, in_progress, fixed, wont_fix or duplicate — with the team's note; only fixed means resolved.
help
ChatGPTUse this when the user asks what BurnWeek can do ('what can you track', 'can it do recipes?', 'help'), when a request seems to fit no tool, or when you are unsure which tool a feature lives in. Use also when the user asks whether their connected food tracker can do something. Do not use for nutrition questions or for the user's data (show_today / find_food). Returns the live feature list (authoritative over these descriptions — features may have been added since) and workflow recipes naming the tools in order; topic narrows both. Tip: read next[].
link_account
ChatGPTUse this when the user wants to connect their existing BurnWeek app data to ChatGPT and gives you a link code from the BurnWeek app. Links this ChatGPT identity to their BurnWeek account.
list_recurring
ChatGPTUse this when the user wants to see or review their recurring/scheduled meals ('what repeats', 'show my automations', 'my routines'). Also handles: finding a rule's id before skipping, pausing or removing it; whether routines are paused, the day types and reminders; include:'suggestions' for routines suggested from their log. Use also when the user asks what gets counted automatically for them. Do not use for changing a rule (set_recurring) or deleting one (delete_saved_item). Returns each rule with its kind, schedule, time and active state. Tip: read next[].
log_meal
ChatGPTUse this when the user ate or drank something and wants it logged: 'I had a chicken bowl', '300 g potatoes, ~390 cal', a food photo, 'log my protein bar', 'same as yesterday's lunch', 'half of my lentil soup'. Also handles: photos (imageUrl/imageData), saved barcodes, favourites, recipes and re-logging a meal via from — exactly one source per call. Pass what you know as components with provenance; BurnWeek estimates only the blanks. ALWAYS pass the user's local date. Use also when BurnWeek is not named but the user reports their own food as eaten ('just had two eggs and toast', 'grabbed a latte'). Do not use for hypothetical questions ('calories in a Big Mac?') or for correcting an entry (edit_meal). Returns the meal, its totals and the full day state. Tip: read next[].
my_stories
ChatGPTReads the user's own stories sent to BurnWeek, e.g. 'what happened to my story?', 'is my story published?'. Not for sending a new story or changing one. Returns each story's state (sent, being prepared, ready for approval, approved, published, withdrawn, not published this time), the change the user asked for, BurnWeek's note when it was not published, the final text while it waits for approval, and the public link once published. Read-only.
plan_meal
ChatGPTUse this when the user wants to arrange food for a day that hasn't happened yet ('plan a chicken bowl for tomorrow', 'add salmon to Wednesday'). A planned meal counts toward that day and becomes a real meal when the day closes. Also handles: plan a saved recipe, favourite, a past meal or an already-planned item (from), resize a planned item (itemId + grams), swap an ingredient in place (itemId + text). Same food ⇒ same numbers: for part of something already logged or planned ('the other half of the pot for Saturday') copy it via from.{planned|mealId|recipeId} + grams/factor, never as text. Always pass date as the user's local YYYY-MM-DD. Use also when the user commits to a later meal ('tomorrow I'll have the salmon'), not when musing. Do not use for food already eaten (log_meal) or for ideas (show_plan with suggest). Returns the day's plan card. Tip: read next[].
review_story
ChatGPTAnswers BurnWeek's final text of the user's story while it waits for their approval, e.g. 'approve my story', 'that's not what I said, change the second part'. decision=approve publishes this text; request_changes sends it back with a note. Without confirm it shows the final text or the note and changes nothing; confirm=true applies it, only on the user's explicit yes. Not for editing the user's own words or for withdrawing a story. Returns the final text or the note, and the story's new state.
save_to_library
ChatGPTUse this when the user wants to keep something for later: save what was cooked as a recipe (every ingredient, zero-calorie ones too, plus method, cooked weight, servings), edit a saved recipe, or star a meal or food as a favourite. Also handles: from a logged meal (from.mealId, any day), from a description (text), rename, instructions, pin, ingredient add/update/remove by name (kind + id). BurnWeek estimates blanks and keeps your numbers with their provenance; name it in the user's language. Use also when a dish you cooked together turned out well and the user wants to make it again. Do not use for logging food eaten or planning a day. Returns the saved item with per-ingredient provenance. Tip: read next[].
set_goal
ChatGPTUse this when the user states or changes their daily target: 'set my goal to 1900 calories and 150 g protein', 'my target is 2200 kcal', or when a result's hints say no goal is set and the user gives one. Saves it on the BurnWeek server (shared with the app) so every 'calories left' becomes real. Also handles: an explicit weekly budget; optional carbs/fat targets in grams. Use also when the user states their own intake target in passing ('I want to eat around 1800 a day', 'I'm trying to lose weight, cutting to about 1800 a day and 140 g protein'). Do not use for reading the current target (show_today returns it), for logging, or for advice when the user has not chosen a number ('what's a good protein target?', 'make me a weight-loss meal plan'). Returns the saved target. Tip: read next[].
set_recurring
ChatGPTUse this when the user eats something on a schedule and wants BurnWeek to log it automatically, or wants to change or skip such a rule. Also handles: create from words (text), from a logged meal (from.mealId) or a recipe (from.recipeId); skip one day (id + skipDate); reschedule, set an end date, pause/resume (id + fields). Dates are the user's local YYYY-MM-DD. Use also when the user describes a fixed habit they want counted ('same oats every morning, count them for me'). Routines: kind 'pairing' + trigger + add ('when I log coffee, add oat milk'), kind 'leftovers' (plan the rest of a pot), landing/time for a repeat, pause/resume all, settings for day types and the 4 built-in reminders. Do not use for a one-off meal (log_meal), to delete a rule (delete_saved_item), or for any other reminder ('remind me to eat lunch at noon'). Returns the rule and all recurring meals. Tip: read next[].
share_story
ChatGPTShares the user's own story about BurnWeek with the BurnWeek team, in the user's words, e.g. 'I want to tell BurnWeek how it helped me', 'share my story'. A story has a type with a few short questions (or free text for the custom type), a name choice (first name, initials or anonymous), an optional title, country, pictures and verified numbers from the user's log. Without confirm it returns a preview: exactly what would be sent, the number values and the consent text, and stores nothing. With confirm=true and the required consent tick it sends the story once; a repeat is a no-op. BurnWeek publishes a story on burnweek.fit only after the user approves the final text. Not for product feedback or bug reports. Returns the preview, or the sent story with its state.
show_plan
ChatGPTUse this when the user wants to see what they've planned for a day or the days ahead, or wants ideas to complete a day ('what's my plan for tomorrow', 'plan overview', 'fill the gap', 'suggest dinner'). Also handles: the upcoming-days overview (omit date) and 2–4 AI meal-set ideas that fit the remaining budget (suggest:true, optional instruction). Use also when the user asks what to eat later to hit their protein or stay in budget ('what's for dinner to hit protein'). Do not use for what was eaten (show_today) or to book a meal (plan_meal). Returns the plan card or the suggestion sets. Tip: read next[].
show_today
ChatGPTUse this when the user asks what they ate or how a day is going: 'what have I eaten today', 'how many calories / how much protein', 'what did I have yesterday / on Monday', 'how is my day tracking', or to find a meal's id before editing or deleting it. ALWAYS pass date as the user's local YYYY-MM-DD. Use also when an answer depends on the user's day: 'can I fit a pizza tonight', 'how much protein do I still need', 'did I eat enough today'. Do not use for the week (show_week) or right after a write (log_meal / edit_meal / delete_meal already return the day state). Returns the day's meals with ids, calorie range, protein, carbs/fat, targets and what's left. Tip: read next[].
show_week
ChatGPTUse this when the user asks about their week: 'how is my week going', 'weekly budget', 'the last 7 days', 'how much headroom do I have left this week'. Shows the 7-day sliding-window calorie budget: used (as a range), remaining, meal count and unlogged days. Use also when the user asks whether they overate lately or can afford a big weekend meal. Do not use for a single day ('what did I eat today / yesterday' → show_today) or right after a write (those return the day state). Returns the week budget, usage range, remaining calories and the week's meals with ids. Tip: read next[].
submit_feedback
ChatGPTUse this when the user wants BurnWeek's developers to hear something: 'send this as feedback', 'report that as a bug', 'tell them this is confusing' — ONLY after the user confirmed the wording; never on your own initiative. Also handles: your own observations about the BurnWeek tools (source=assistant_observation) when the user agrees. Saved to BurnWeek's feedback database and emailed to the owner. Use also when the user complains about BurnWeek's behaviour and agrees to pass it on. Do not use for questions about food, for support requests you can answer, or with any secret. Returns the feedback id. Tip: read next[].
update_feedback
ChatGPTAnswers back on one of the user's own feedback reports: adds a detail, says a fix is still broken (this reopens the report), sets how BurnWeek emails about reports (key moments, only when a fix can be used, or no emails) or mutes the emails about one report. A written reply is sent only with confirm true; without it the result is a preview with a short warning about personal details. Not for sending new feedback. Returns the updated report.
withdraw_story
ChatGPTWithdraws one of the user's stories, e.g. 'take my story down', 'withdraw my story'. The public page comes down at once and the pictures are deleted; it cannot be undone. Without confirm it returns the confirmation question and changes nothing; confirm=true withdraws, only on the user's explicit yes. Not for declining a final text to change it. Returns the story with its new state.