Remember how the household eats
update_profileSave what the user says about how they eat so it holds across sessions and clients: "we don't eat cilantro" is add_dislikes, "my daughter can't have berries or tomatoes" is add_allergens, "we love meat" is add_likes, "weeknights are 30 minutes max" is time_budget_minutes, "we're five" is household_size, "grams please" is units=metric. Only the fields passed change; lists are added to or removed from, never replaced, so nothing already saved is lost. Pass 0 for a number to clear it. Something one person cannot or will not eat goes on that person under people, so a search with who can leave it out when they are not at the table; what everyone avoids goes on the household lists. Save the user themself as a person with self=true and the role adult, so who=['me'] works. Give each person a role (kid, adult, parent, guest) when the user says it, so who can name a group. What fits no field (an additive to avoid, how the week is cooked) goes in notes. From then on allergens and dislikes are excluded from every search as whole words, vegetarian, vegan, gluten_free, dairy_free and nut_free diets stay on unless a search passes ignore_profile_diets, and the time budget is the default time limit. Returns the whole profile after the change; read it back to the user in one short list. When allergens were added it carries a note to pass on once: exclusions match whole words, so for a serious allergy the user should still read ingredients and labels themselves.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | free text for what fits no field: an additive to avoid such as sodium benzoate, how the week is cooked, anything to keep in mind; replaces the saved notes, so read them first and pass the merged text; empty string clears it | |
| units | No | metric or us, the measurements the user wants to read; get_recipe converts amounts and oven temperatures to it; empty string clears it | |
| people | No | people in the household with a role and what applies to them alone: 'Sam, our kid, can't have berries' is people=[{name:'Sam', role:'kid', add_allergens:['berries']}]; what everyone avoids goes on the household lists instead. Each entry changes only that person and only the fields passed | |
| add_diets | No | diets followed; vegetarian, vegan, gluten_free, dairy_free and nut_free switch the matching filter on for every search, any other value is stored for you to read | |
| add_likes | No | ingredients or dishes the household loves, e.g. ['meat','pasta','spicy food']; nothing is filtered on them, read them to steer what you suggest | |
| add_cuisines | No | cuisines the household likes, e.g. ['italian','mexican','thai']; stored for you to read | |
| add_dislikes | No | ingredients the household avoids by taste, e.g. ['cilantro','mushrooms']; excluded from every search as whole words | |
| remove_diets | No | ||
| remove_likes | No | ||
| add_allergens | No | ingredients nobody in the household may eat, medical or otherwise, one per entry, e.g. ['peanuts','berries','tomatoes']; excluded from every search as whole words | |
| fat_g_per_day | No | daily fat goal in grams; 0 clears it | |
| remove_people | No | names to take off the profile | |
| household_size | No | how many people usually eat, e.g. 5 for two adults and three children; 0 clears it | |
| carbs_g_per_day | No | daily carbohydrate goal in grams; 0 clears it | |
| remove_cuisines | No | ||
| remove_dislikes | No | ||
| calories_per_day | No | daily calorie goal when the user tracks one; 0 clears it | |
| remove_allergens | No | ||
| protein_g_per_day | No | daily protein goal in grams; 0 clears it | |
| time_budget_minutes | No | most minutes a usual dinner may take in total; becomes the default time limit on every search; 0 clears it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | Yes | false when nothing has been saved yet | |
| note | No | ||
| diets | Yes | ||
| likes | Yes | ||
| notes | No | free text the user wrote about how they eat that fits no field, such as an additive to avoid or how they batch cook; read it before recommending or planning | |
| units | No | ||
| people | Yes | ||
| cuisines | Yes | ||
| dislikes | Yes | ||
| allergens | Yes | ||
| household | No | present when the user shares a kitchen with other ask.recipes accounts; their allergens and dislikes apply to searches for everyone | |
| fat_g_per_day | No | ||
| household_size | No | ||
| carbs_g_per_day | No | ||
| calories_per_day | No | ||
| protein_g_per_day | No | ||
| time_budget_minutes | No |