{"serverInfo":{"name":"remembite","title":"Remembite","version":"0.1.0","icons":[{"src":"https://remembite.com/icon-512.png?v=nut198","mimeType":"image/png","sizes":["512x512"]},{"src":"https://remembite.com/favicon.svg?v=nut198","mimeType":"image/svg+xml","sizes":["any"]}]},"description":"Your AI does the math. Remembite keeps the record: your AI sends each meal with its calories and macros, Remembite checks the numbers, sends back a question about any that look off, and keeps your history, goals and trends.","homepage":"https://remembite.com","authentication":{"required":true,"schemes":["oauth2"],"resource_metadata":"https://remembite.com/.well-known/oauth-protected-resource","scopes":["meal:read","meal:write"]},"tools":[{"name":"resolve_meal","title":"Resolve meal","description":"Optional: reference values from the USDA-based catalog and clarifying questions. Nothing is saved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"query":{"description":"Food as the person said it, for example 'cooked rice' or '2 eggs'. A leading quantity and unit may be included.","type":"string","minLength":1,"maxLength":80},"quantity":{"description":"Amount in the given unit, or a count of pieces when no unit is given.","type":"number","exclusiveMinimum":0,"maximum":10000},"unit":{"description":"Unit such as g, cup, slice, bowl or piece.","type":"string","minLength":1,"maxLength":24},"size":{"description":"Size of the piece or portion: small, medium or large.","type":"string","enum":["small","medium","large"]},"state":{"description":"Whether the food was weighed or measured raw or cooked.","type":"string","enum":["raw","cooked"]},"preparation":{"description":"Cooking method such as fried, boiled or grilled.","type":"string","minLength":1,"maxLength":40},"food_id":{"description":"Catalog food id taken from a previous result, which pins the match.","type":"string","minLength":1,"maxLength":64},"portion_id":{"description":"Catalog portion id taken from a previous result.","type":"string","minLength":1,"maxLength":64},"grams":{"description":"Weight in grams taken from a previous result or from the person.","type":"number","exclusiveMinimum":0,"maximum":5000}},"required":["query"],"additionalProperties":false},"description":"Foods to resolve, one entry per food."}},"required":["items"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"log_meal","title":"Log meal","description":"Saves a meal to the person's food log. The request carries the grams of each portion and kcal, protein, carbs and fat for the whole portion, plus fiber, sugar, saturated fat and sodium when known. The nutrient values in the request are saved as sent. The server compares them with the USDA-based catalog; if an item is far from the reference or its macros exceed its kcal, nothing is saved and the result is needs_confirmation with a question per item for the person; repeating the request with confirmed true on that item saves it. Repeating an idempotency_key returns the meal already saved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"query":{"description":"Food as the person said it, for example 'cooked rice' or '2 eggs'. A leading quantity and unit may be included.","type":"string","minLength":1,"maxLength":80},"quantity":{"description":"Amount in the given unit, or a count of pieces when no unit is given.","type":"number","exclusiveMinimum":0,"maximum":10000},"unit":{"description":"Unit such as g, cup, slice, bowl or piece.","type":"string","minLength":1,"maxLength":24},"size":{"description":"Size of the piece or portion: small, medium or large.","type":"string","enum":["small","medium","large"]},"state":{"description":"Whether the food was weighed or measured raw or cooked.","type":"string","enum":["raw","cooked"]},"preparation":{"description":"Cooking method such as fried, boiled or grilled.","type":"string","minLength":1,"maxLength":40},"food_id":{"description":"Catalog food id taken from a previous result, which pins the match.","type":"string","minLength":1,"maxLength":64},"portion_id":{"description":"Catalog portion id taken from a previous result.","type":"string","minLength":1,"maxLength":64},"grams":{"type":"number","exclusiveMinimum":0,"maximum":5000,"description":"Weight of the whole portion eaten, in grams. Estimate it from the quantity and unit when the person gave no weight."},"kcal":{"type":"number","minimum":0,"maximum":10000,"description":"Energy of the whole portion in kcal, computed by you."},"protein_g":{"type":"number","minimum":0,"maximum":5000,"description":"Protein of the whole portion in grams, computed by you."},"carbs_g":{"type":"number","minimum":0,"maximum":5000,"description":"Carbohydrate of the whole portion in grams, computed by you."},"fat_g":{"type":"number","minimum":0,"maximum":5000,"description":"Fat of the whole portion in grams, computed by you."},"fiber_g":{"description":"Fibre in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sugar_g":{"description":"Sugar in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sat_fat_g":{"description":"Saturated fat in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sodium_mg":{"description":"Sodium in mg, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":100000},"confirmed":{"description":"True only after the person confirmed these exact numbers when the server returned needs_confirmation for this item.","type":"boolean"}},"required":["query","grams","kcal","protein_g","carbs_g","fat_g"],"additionalProperties":false},"description":"Foods eaten, one entry per food, each with the weight and nutrient values you computed."},"meal_type":{"description":"breakfast, lunch, dinner or snack.","type":"string","enum":["breakfast","lunch","dinner","snack"]},"eaten_at":{"description":"When the meal was eaten, ISO 8601 with offset. Defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."},"idempotency_key":{"type":"string","pattern":"^[\\x21-\\x7e]{8,100}$","description":"Caller-chosen unique key for this meal. Repeating a key returns the meal already logged."}},"required":["items","idempotency_key"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_day","title":"Get day","description":"Returns the meals logged on one local date with their items and the day's nutrient totals, plus the plain water logged with log_water that day: the total in ml and each entry. Defaults to today in the person's timezone.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"date":{"description":"Local date, YYYY-MM-DD. Defaults to today in the person's timezone.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."}},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_history","title":"Get history","description":"Lists saved meals grouped by local date for a range of at most 31 days, with per-day nutrient totals. Can be limited to one meal type. Also returns the plain water total per local date in the range (water is not filtered by meal type).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First local date, YYYY-MM-DD."},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last local date, YYYY-MM-DD. At most 31 days after from."},"meal_type":{"description":"Only meals of this type.","type":"string","enum":["breakfast","lunch","dinner","snack"]}},"required":["from","to"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_summary","title":"Get summary","description":"Summarizes a date range of at most 92 days: average nutrients per logged day, number of days logged, days whose energy was within 10 percent of the goal in effect, the five most frequently logged foods, and the number of days with water logged and the average water in ml on those days.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First local date, YYYY-MM-DD."},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last local date, YYYY-MM-DD. At most 92 days after from."}},"required":["from","to"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"update_meal","title":"Update meal","description":"Changes a saved meal by meal_id in one step; only the parts that change are sent. meal_type and eaten_at (with timezone) move the meal; add_items adds items like log_meal; remove_item_ids removes items; item_patches changes existing items by item_id and only the fields sent, so every other value, including a nutrient not recorded before, stays as stored. The values in the request are saved as sent. For added items and for patched items whose weight or macros changed, the server compares them with the catalog; if one is far from the reference or its macros exceed its kcal, nothing is changed and the result is needs_confirmation with a question per item for the person; repeating the request with confirmed true on that item saves it. The result carries the day totals, and the previous day when the meal moved to another date. Repeating an idempotency_key returns the meal already updated.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the meal."},"meal_type":{"description":"New meal type: breakfast, lunch, dinner or snack. Omit to keep it.","type":"string","enum":["breakfast","lunch","dinner","snack"]},"eaten_at":{"description":"New time the meal was eaten, ISO 8601 with offset. Omit to keep it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."},"add_items":{"description":"Items to add, each with the weight and nutrient values you computed, checked like in log_meal.","minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"query":{"description":"Food as the person said it, for example 'cooked rice' or '2 eggs'. A leading quantity and unit may be included.","type":"string","minLength":1,"maxLength":80},"quantity":{"description":"Amount in the given unit, or a count of pieces when no unit is given.","type":"number","exclusiveMinimum":0,"maximum":10000},"unit":{"description":"Unit such as g, cup, slice, bowl or piece.","type":"string","minLength":1,"maxLength":24},"size":{"description":"Size of the piece or portion: small, medium or large.","type":"string","enum":["small","medium","large"]},"state":{"description":"Whether the food was weighed or measured raw or cooked.","type":"string","enum":["raw","cooked"]},"preparation":{"description":"Cooking method such as fried, boiled or grilled.","type":"string","minLength":1,"maxLength":40},"food_id":{"description":"Catalog food id taken from a previous result, which pins the match.","type":"string","minLength":1,"maxLength":64},"portion_id":{"description":"Catalog portion id taken from a previous result.","type":"string","minLength":1,"maxLength":64},"grams":{"type":"number","exclusiveMinimum":0,"maximum":5000,"description":"Weight of the whole portion eaten, in grams. Estimate it from the quantity and unit when the person gave no weight."},"kcal":{"type":"number","minimum":0,"maximum":10000,"description":"Energy of the whole portion in kcal, computed by you."},"protein_g":{"type":"number","minimum":0,"maximum":5000,"description":"Protein of the whole portion in grams, computed by you."},"carbs_g":{"type":"number","minimum":0,"maximum":5000,"description":"Carbohydrate of the whole portion in grams, computed by you."},"fat_g":{"type":"number","minimum":0,"maximum":5000,"description":"Fat of the whole portion in grams, computed by you."},"fiber_g":{"description":"Fibre in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sugar_g":{"description":"Sugar in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sat_fat_g":{"description":"Saturated fat in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sodium_mg":{"description":"Sodium in mg, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":100000},"confirmed":{"description":"True only after the person confirmed these exact numbers when the server returned needs_confirmation for this item.","type":"boolean"}},"required":["query","grams","kcal","protein_g","carbs_g","fat_g"],"additionalProperties":false}},"remove_item_ids":{"description":"Ids of items to remove from the meal.","minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"item_patches":{"description":"Changes to existing items: the item id plus only the fields to change. Fields you omit keep their stored value.","minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the item inside the meal."},"query":{"description":"New name of the food. Omit to keep the stored name.","type":"string","minLength":1,"maxLength":80},"grams":{"description":"New weight of the whole portion in grams. Omit to keep the stored weight.","type":"number","exclusiveMinimum":0,"maximum":5000},"kcal":{"description":"New energy of the whole portion in kcal. Omit to keep the stored value.","type":"number","minimum":0,"maximum":10000},"protein_g":{"description":"New protein in grams. Omit to keep the stored value.","type":"number","minimum":0,"maximum":5000},"carbs_g":{"description":"New carbohydrate in grams. Omit to keep the stored value.","type":"number","minimum":0,"maximum":5000},"fat_g":{"description":"New fat in grams. Omit to keep the stored value.","type":"number","minimum":0,"maximum":5000},"fiber_g":{"description":"New fibre in grams. Omit to keep the stored value, including not recorded.","type":"number","minimum":0,"maximum":5000},"sugar_g":{"description":"New sugar in grams. Omit to keep the stored value, including not recorded.","type":"number","minimum":0,"maximum":5000},"sat_fat_g":{"description":"New saturated fat in grams. Omit to keep the stored value, including not recorded.","type":"number","minimum":0,"maximum":5000},"sodium_mg":{"description":"New sodium in mg. Omit to keep the stored value, including not recorded.","type":"number","minimum":0,"maximum":100000},"confirmed":{"description":"True only after the person confirmed these exact numbers when the server returned needs_confirmation for this item.","type":"boolean"}},"required":["item_id"],"additionalProperties":false}},"idempotency_key":{"type":"string","pattern":"^[\\x21-\\x7e]{8,100}$","description":"Caller-chosen unique key for this change. Repeating a key returns the meal already updated."}},"required":["meal_id","idempotency_key"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"update_meal_item","title":"Update meal item","description":"Replaces one item of a saved meal with a new item, overwriting the previous item and its values. Covers replacing one whole item only; changing a single value, adding or removing items, the time or the meal type is done by update_meal. As in log_meal, the grams and nutrient values in the request are saved as sent; if they are far from the catalog reference or the macros exceed the kcal, nothing is changed and the result is needs_confirmation with a question for the person; repeating the request with confirmed true saves it. With remember true the replacement also becomes the person's own default for that phrase when it matches a catalog food.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the meal."},"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the item inside the meal."},"item":{"type":"object","properties":{"query":{"description":"Food as the person said it, for example 'cooked rice' or '2 eggs'. A leading quantity and unit may be included.","type":"string","minLength":1,"maxLength":80},"quantity":{"description":"Amount in the given unit, or a count of pieces when no unit is given.","type":"number","exclusiveMinimum":0,"maximum":10000},"unit":{"description":"Unit such as g, cup, slice, bowl or piece.","type":"string","minLength":1,"maxLength":24},"size":{"description":"Size of the piece or portion: small, medium or large.","type":"string","enum":["small","medium","large"]},"state":{"description":"Whether the food was weighed or measured raw or cooked.","type":"string","enum":["raw","cooked"]},"preparation":{"description":"Cooking method such as fried, boiled or grilled.","type":"string","minLength":1,"maxLength":40},"food_id":{"description":"Catalog food id taken from a previous result, which pins the match.","type":"string","minLength":1,"maxLength":64},"portion_id":{"description":"Catalog portion id taken from a previous result.","type":"string","minLength":1,"maxLength":64},"grams":{"type":"number","exclusiveMinimum":0,"maximum":5000,"description":"Weight of the whole portion eaten, in grams. Estimate it from the quantity and unit when the person gave no weight."},"kcal":{"type":"number","minimum":0,"maximum":10000,"description":"Energy of the whole portion in kcal, computed by you."},"protein_g":{"type":"number","minimum":0,"maximum":5000,"description":"Protein of the whole portion in grams, computed by you."},"carbs_g":{"type":"number","minimum":0,"maximum":5000,"description":"Carbohydrate of the whole portion in grams, computed by you."},"fat_g":{"type":"number","minimum":0,"maximum":5000,"description":"Fat of the whole portion in grams, computed by you."},"fiber_g":{"description":"Fibre in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sugar_g":{"description":"Sugar in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sat_fat_g":{"description":"Saturated fat in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sodium_mg":{"description":"Sodium in mg, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":100000},"confirmed":{"description":"True only after the person confirmed these exact numbers when the server returned needs_confirmation for this item.","type":"boolean"}},"required":["query","grams","kcal","protein_g","carbs_g","fat_g"],"additionalProperties":false,"description":"Replacement item with the weight and nutrient values you computed."},"remember":{"description":"True saves the replacement as the person's own default for this phrase.","type":"boolean"}},"required":["meal_id","item_id","item"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},{"name":"delete_meal","title":"Delete meal","description":"Permanently deletes one saved meal, its items and any photos attached to it, by meal id.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the meal."}},"required":["meal_id"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"search_food","title":"Search food","description":"Looks up foods in the nutrition catalog by name and returns the best candidates with nutrient values per 100 g, common portions and the data source.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"description":"Food name to look up.","type":"string","minLength":1,"maxLength":80},"limit":{"description":"Maximum number of candidates. Defaults to 5.","type":"integer","minimum":1,"maximum":5}},"required":["query"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"lookup_barcode","title":"Look up barcode","description":"Looks up a packaged product by barcode in Open Food Facts and returns reference nutrient values per 100 g and per serving, with the source. Saves nothing. The values are a reference for a meal logged with log_meal.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"barcode":{"type":"string","pattern":"^\\d{8,14}$","description":"Product barcode (EAN-8, UPC-A, EAN-13 or GTIN-14), digits only, 8 to 14 characters."}},"required":["barcode"],"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},{"name":"get_goals","title":"Get goals","description":"Returns the daily nutrition goals in effect on a date, or none when no goals were set. Defaults to today.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"date":{"description":"Local date, YYYY-MM-DD. Defaults to today.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"set_goals","title":"Set goals","description":"Sets daily nutrition goals, and optionally a daily water goal in ml, from an effective date onward. Partial updates are supported: an omitted value keeps the value from the goals in effect on that date, and null clears that one goal (at least one goal must remain). Setting the same effective date again replaces that day's goals. Without effective_from the goals start today in the person's timezone; a timezone (IANA) can be passed to be saved to the profile when it is not known yet.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"effective_from":{"description":"Date the goals start, YYYY-MM-DD. Defaults to today in the person's timezone.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."},"kcal":{"description":"Daily energy goal in kcal. Omit to keep, null to clear.","anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":20000},{"type":"null"}]},"protein_g":{"description":"Daily protein goal in grams. Omit to keep, null to clear.","anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":2000},{"type":"null"}]},"carbs_g":{"description":"Daily carbohydrate goal in grams. Omit to keep, null to clear.","anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":2000},{"type":"null"}]},"fat_g":{"description":"Daily fat goal in grams. Omit to keep, null to clear.","anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":2000},{"type":"null"}]},"water_ml":{"description":"Daily water goal in ml, set by the person. Omit to keep, null to clear.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":20000},{"type":"null"}]}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"repeat_meal","title":"Repeat meal","description":"Saves a new meal copied from an earlier meal, a template, or the latest meal of a given type on a given local date. Unchanged items keep their food, weight and the nutrient values stored with them, including items outside the catalog; scaled items get the stored values multiplied by the weight ratio. A template saved before snapshots existed holds only catalog food ids, so its items are recomputed from the catalog. Optional edits scale the whole meal or one item, remove items, or add items; an added item carries its grams and nutrient values, saved as sent as in log_meal; if one is far from the catalog reference or its macros exceed its kcal, nothing is saved and the result is needs_confirmation with a question per item for the person; repeating the request with confirmed true on that item saves it. Repeating an idempotency_key returns the meal already saved.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"source":{"anyOf":[{"type":"object","properties":{"meal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of a saved meal."}},"required":["meal_id"],"additionalProperties":false},{"type":"object","properties":{"template":{"description":"Name of a saved template, case-insensitive.","type":"string","minLength":1,"maxLength":60}},"required":["template"],"additionalProperties":false},{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Local date of the meal, YYYY-MM-DD."},"meal_type":{"type":"string","enum":["breakfast","lunch","dinner","snack"],"description":"breakfast, lunch, dinner or snack."}},"required":["date","meal_type"],"additionalProperties":false}],"description":"Meal to copy: by meal id, by template name, or by local date and meal type (the latest such meal)."},"edits":{"description":"Changes to the copy. Unchanged items keep their food, weight and stored nutrient values; scaling multiplies the stored values by the weight ratio.","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"scale"},"factor":{"type":"number","exclusiveMinimum":0,"maximum":20,"description":"Multiplier for the weight, for example 2 to double."},"item":{"description":"Item to scale. Omit to scale the whole meal.","anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"integer","minimum":0,"maximum":19}]}},"required":["op","factor"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove"},"item":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"integer","minimum":0,"maximum":19}],"description":"Item to change: a case-insensitive part of its label or food name, or its position in the source meal starting at 0."}},"required":["op","item"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"add"},"item":{"type":"object","properties":{"query":{"description":"Food as the person said it, for example 'cooked rice' or '2 eggs'. A leading quantity and unit may be included.","type":"string","minLength":1,"maxLength":80},"quantity":{"description":"Amount in the given unit, or a count of pieces when no unit is given.","type":"number","exclusiveMinimum":0,"maximum":10000},"unit":{"description":"Unit such as g, cup, slice, bowl or piece.","type":"string","minLength":1,"maxLength":24},"size":{"description":"Size of the piece or portion: small, medium or large.","type":"string","enum":["small","medium","large"]},"state":{"description":"Whether the food was weighed or measured raw or cooked.","type":"string","enum":["raw","cooked"]},"preparation":{"description":"Cooking method such as fried, boiled or grilled.","type":"string","minLength":1,"maxLength":40},"food_id":{"description":"Catalog food id taken from a previous result, which pins the match.","type":"string","minLength":1,"maxLength":64},"portion_id":{"description":"Catalog portion id taken from a previous result.","type":"string","minLength":1,"maxLength":64},"grams":{"type":"number","exclusiveMinimum":0,"maximum":5000,"description":"Weight of the whole portion eaten, in grams. Estimate it from the quantity and unit when the person gave no weight."},"kcal":{"type":"number","minimum":0,"maximum":10000,"description":"Energy of the whole portion in kcal, computed by you."},"protein_g":{"type":"number","minimum":0,"maximum":5000,"description":"Protein of the whole portion in grams, computed by you."},"carbs_g":{"type":"number","minimum":0,"maximum":5000,"description":"Carbohydrate of the whole portion in grams, computed by you."},"fat_g":{"type":"number","minimum":0,"maximum":5000,"description":"Fat of the whole portion in grams, computed by you."},"fiber_g":{"description":"Fibre in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sugar_g":{"description":"Sugar in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sat_fat_g":{"description":"Saturated fat in grams, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":5000},"sodium_mg":{"description":"Sodium in mg, when you know it. Omit it when you do not know: it is then saved as not recorded, not as 0. Send 0 only when the food has none.","type":"number","minimum":0,"maximum":100000},"confirmed":{"description":"True only after the person confirmed these exact numbers when the server returned needs_confirmation for this item.","type":"boolean"}},"required":["query","grams","kcal","protein_g","carbs_g","fat_g"],"additionalProperties":false,"description":"Extra item with the weight and nutrient values you computed, checked like in log_meal."}},"required":["op","item"],"additionalProperties":false}]}},"meal_type":{"description":"breakfast, lunch, dinner or snack. Defaults to the type of the source meal.","type":"string","enum":["breakfast","lunch","dinner","snack"]},"eaten_at":{"description":"When the meal was eaten, ISO 8601 with offset. Defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."},"idempotency_key":{"type":"string","pattern":"^[\\x21-\\x7e]{8,100}$","description":"Caller-chosen unique key for this meal. Repeating a key returns the meal already logged."}},"required":["source","idempotency_key"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"save_template","title":"Save template","description":"Saves the items of a saved meal as a named template such as 'my usual breakfast'. Each item keeps its name, source, weight and nutrient values as stored, including items outside the catalog, and repeat_meal copies those values. Saving the same name again, in any letter case, replaces that template instead of adding another.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"description":"Template name, for example 'my usual breakfast'. The same name in any letter case replaces that template.","type":"string","minLength":1,"maxLength":60},"meal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the saved meal to copy into the template."}},"required":["name","meal_id"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"remember_food","title":"Remember food","description":"Saves the person's own meaning of a phrase such as 'my oats': a catalog food with an optional usual portion or weight in grams and an optional raw or cooked state. Saving the same phrase again replaces the earlier setting.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"phrase":{"description":"Words the person uses, for example 'my oats'.","type":"string","minLength":1,"maxLength":80},"food_id":{"type":"string","minLength":1,"maxLength":64,"description":"Catalog food id taken from a previous result."},"portion_id":{"description":"Catalog portion id used as the usual amount. Not together with grams.","type":"string","minLength":1,"maxLength":64},"grams":{"description":"Usual amount in grams. Not together with portion_id.","type":"number","exclusiveMinimum":0,"maximum":5000},"state":{"description":"Whether the phrase usually means the raw or the cooked food.","type":"string","enum":["raw","cooked"]}},"required":["phrase","food_id"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"list_memory","title":"List memory","description":"Lists everything saved for the person: meal templates with their items, and personal phrases with their food, usual portion or weight, and state.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"forget_memory","title":"Forget memory","description":"Permanently deletes one saved personal phrase or one meal template by name. Meals already logged are not affected.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"alias_phrase":{"description":"Saved phrase to forget.","type":"string","minLength":1,"maxLength":80},"template":{"description":"Name of the template to delete, case-insensitive.","type":"string","minLength":1,"maxLength":60}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"log_water","title":"Log water","description":"Saves one drink of plain water to the person's water log. Accepted units are ml, l, fl_oz (US fluid ounce, 29.5735 ml) and cup (240 ml); the amount is stored in whole ml together with the original amount and unit. Any other unit, such as glass or bottle, is not accepted; the amount is then needed in ml. Drinks with energy, such as milk, juice or coffee, are logged with log_meal and are not counted as water. Repeating an idempotency_key returns the entry already saved. If the person has not yet accepted the updated health data notice, nothing is saved and the result tells them where to accept it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0,"maximum":100000,"description":"Amount of plain water drunk, in the given unit."},"unit":{"type":"string","minLength":1,"maxLength":20,"description":"ml, l, fl_oz (US fluid ounce) or cup (240 ml). For any other unit such as glass or bottle, ask the person for the amount in ml."},"drank_at":{"description":"When the water was drunk, ISO 8601 with offset. Defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."},"idempotency_key":{"type":"string","pattern":"^[\\x21-\\x7e]{8,100}$","description":"Caller-chosen unique key for this meal. Repeating a key returns the meal already logged."}},"required":["amount","unit"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"delete_water","title":"Delete water entry","description":"Permanently deletes one saved water entry by water id.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"water_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the water entry."}},"required":["water_id"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"log_weight","title":"Log weight","description":"Saves one body weight reading. The number is saved as stated, with unit kg or lb; no unit conversion is applied to the input. If the person has no saved unit yet and none is sent, nothing is saved and the result asks which unit applies. Weight is stored in whole grams and shown with 2 decimals. More than one reading per day is allowed; the day value is their mean. The result has the change since about a week earlier, the 7-day average and the goal if one is set. Repeating an idempotency_key returns the reading already saved. If the person has not yet accepted the updated health data notice, nothing is saved and the result tells them where to accept it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weight":{"type":"number","exclusiveMinimum":0,"maximum":5000,"description":"Body weight exactly as the person said it, in the given unit. Do not convert units yourself."},"unit":{"description":"kg or lb, the unit of weight. Omit it only when the person already has a saved unit; otherwise ask which unit they use.","type":"string","enum":["kg","lb"]},"measured_at":{"description":"When the person weighed in, ISO 8601 with offset. Defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"type":"string","maxLength":64,"description":"IANA timezone of the person, for example Europe/Berlin. Stored as the profile timezone."},"idempotency_key":{"type":"string","pattern":"^[\\x21-\\x7e]{8,100}$","description":"Caller-chosen unique key for this meal. Repeating a key returns the meal already logged."}},"required":["weight"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_weight","title":"Get weight","description":"Returns saved weight readings for a range of at most 366 days (default the last 30 days up to today): one value per day (the mean of that day's readings), the newest readings with ids, and the trend as of the last date: latest reading, change since about a week earlier, and 7, 14 and 30-day averages. Weights are in grams plus the person's unit (kg when none is saved yet). Reading needs no extra notice.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"description":"First local date, YYYY-MM-DD. Defaults to 29 days before to.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"description":"Last local date, YYYY-MM-DD. Defaults to today in the person's timezone. At most 366 days after from.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"additionalProperties":false},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"update_weight","title":"Update weight reading","description":"Changes the weight or the time of one saved reading, by weight id. Accepts a new weight with its unit (kg or lb; the saved unit is used when omitted), or a new measured_at, or both. Needs the same accepted health data notice as log_weight.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weight_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the weight reading."},"weight":{"type":"number","exclusiveMinimum":0,"maximum":5000,"description":"Body weight exactly as the person said it, in the given unit. Do not convert units yourself."},"unit":{"description":"kg or lb, the unit of weight. Omit it only when the person already has a saved unit; otherwise ask which unit they use.","type":"string","enum":["kg","lb"]},"measured_at":{"description":"New time of the reading, ISO 8601 with offset.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["weight_id"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"delete_weight","title":"Delete weight reading","description":"Permanently deletes one saved weight reading by weight id.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weight_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the weight reading."}},"required":["weight_id"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"attach_meal_photo","title":"Attach meal photo","description":"Used by the Remembite card only: attaches a photo the person chose to a saved meal. The photo is kept with the meal as a record and does not change any number.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Id of the meal."},"image_base64":{"type":"string","minLength":1,"maxLength":2800000,"description":"The photo as a base64 JPEG, long edge at most 1280 px."},"thumb_base64":{"type":"string","minLength":1,"maxLength":140000,"description":"A small base64 JPEG preview, long edge at most 320 px."},"width":{"type":"integer","minimum":1,"maximum":1280},"height":{"type":"integer","minimum":1,"maximum":1280}},"required":["meal_id","image_base64","thumb_base64","width","height"],"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}}],"resources":[],"prompts":[]}