Skip to main content
Glama

Remember how the household eats

update_profile
DestructiveIdempotent

Save 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

NameRequiredDescriptionDefault
notesNofree 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
unitsNometric or us, the measurements the user wants to read; get_recipe converts amounts and oven temperatures to it; empty string clears it
peopleNopeople 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_dietsNodiets 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_likesNoingredients or dishes the household loves, e.g. ['meat','pasta','spicy food']; nothing is filtered on them, read them to steer what you suggest
add_cuisinesNocuisines the household likes, e.g. ['italian','mexican','thai']; stored for you to read
add_dislikesNoingredients the household avoids by taste, e.g. ['cilantro','mushrooms']; excluded from every search as whole words
remove_dietsNo
remove_likesNo
add_allergensNoingredients 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_dayNodaily fat goal in grams; 0 clears it
remove_peopleNonames to take off the profile
household_sizeNohow many people usually eat, e.g. 5 for two adults and three children; 0 clears it
carbs_g_per_dayNodaily carbohydrate goal in grams; 0 clears it
remove_cuisinesNo
remove_dislikesNo
calories_per_dayNodaily calorie goal when the user tracks one; 0 clears it
remove_allergensNo
protein_g_per_dayNodaily protein goal in grams; 0 clears it
time_budget_minutesNomost minutes a usual dinner may take in total; becomes the default time limit on every search; 0 clears it

Output Schema

NameRequiredDescriptionDefault
setYesfalse when nothing has been saved yet
noteNo
dietsYes
likesYes
notesNofree 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
unitsNo
peopleYes
cuisinesYes
dislikesYes
allergensYes
householdNopresent when the user shares a kitchen with other ask.recipes accounts; their allergens and dislikes apply to searches for everyone
fat_g_per_dayNo
household_sizeNo
carbs_g_per_dayNo
calories_per_dayNo
protein_g_per_dayNo
time_budget_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / notes
      Added value: +{
      +  "description": "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",
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / people / items / properties / self
      Added value: +{
      +  "description": "true when this person is the user themself, so 'just me tonight' is who=['me']; one person at most, never a kid",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedOutput schema / properties / notes
      Added value: +{
      +  "description": "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",
      +  "type": "string"
      +}
    • addedOutput schema / properties / people / items / properties / self
      Added value: +{
      +  "description": "true for the person who is the user; who=['me'] names them",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / household
      Added value: +{
      +  "description": "present when the user shares a kitchen with other ask.recipes accounts; their allergens and dislikes apply to searches for everyone",
      +  "properties": {
      +    "in_household": {
      +      "description": "false when this account shares a kitchen with nobody yet",
      +      "type": "boolean"
      +    },
      +    "members": {
      +      "items": {
      +        "properties": {
      +          "creator": {
      +            "description": "the member who created the household; the only one who can remove others",
      +            "type": "boolean"
      +          },
      +          "joined_on": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "you": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "joined_on"
      +        ],
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "in_household",
      +    "members"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / add_allergens / description
      Previous value: -"ingredients nobody at the table may eat, medical or otherwise, one per entry, e.g. ['peanuts','berries','tomatoes']; excluded from every search as whole words"New value: +"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"
    • changedInput schema / properties / people / description
      Previous value: -"people at the table 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"New value: +"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"
    • changedInput schema / properties / people / items / properties / role / description
      Previous value: -"one word for who they are at the table, e.g. 'kid', 'adult', 'parent', 'guest'; who on a search accepts a role as well as a name, so 'the kids are out' is who=['adults']; empty string clears it"New value: +"one word for who they are in the household, e.g. 'kid', 'adult', 'parent', 'guest'; who on a search accepts a role as well as a name, so 'the kids are out' is who=['adults']; empty string clears it"
    • addedOutput schema / properties / note
      Added value: +{
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / units / description
      Previous value: -"metric or us, the measurements the user wants to read; empty string clears it"New value: +"metric or us, the measurements the user wants to read; get_recipe converts amounts and oven temperatures to it; empty string clears it"
  5. Changed4 schema fields changed
    • addedInput schema / properties / people
      Added value: +{
      +  "description": "people at the table 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",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "add_allergens": {
      +        "description": "ingredients this person cannot eat; excluded whenever they are eating",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "add_dislikes": {
      +        "description": "ingredients this person avoids by taste; excluded whenever they are eating",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "add_likes": {
      +        "description": "what this person loves; read, never filtered",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "name": {
      +        "description": "the person's name as the user says it, e.g. 'Sam' or 'Dad'; matched case-insensitively, created on first use",
      +        "type": "string"
      +      },
      +      "remove_allergens": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "remove_dislikes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "remove_likes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "role": {
      +        "description": "one word for who they are at the table, e.g. 'kid', 'adult', 'parent', 'guest'; who on a search accepts a role as well as a name, so 'the kids are out' is who=['adults']; empty string clears it",
      +        "type": [
      +          "null",
      +          "string"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedInput schema / properties / remove_people
      Added value: +{
      +  "description": "names to take off the profile",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / people
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "allergens": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "dislikes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "likes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "null",
      +          "array"
      +        ]
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "role": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "role",
      +      "allergens",
      +      "dislikes",
      +      "likes"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "set",
      -  "diets",
      -  "allergens",
      -  "dislikes",
      -  "likes",
      -  "cuisines"
      -]New value: +[
      +  "set",
      +  "diets",
      +  "allergens",
      +  "dislikes",
      +  "likes",
      +  "cuisines",
      +  "people"
      +]
  6. Added

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations flag destructiveHint=true and idempotentHint=true, and the description earns its keep beyond them by explaining exactly what is and isn't lost: only passed fields change, lists are added to or removed from rather than replaced, and a 0 clears a number. It also discloses downstream effects that no annotation could convey — allergens and dislikes excluded as whole words from every search, diets persisting unless ignore_profile_diets is passed, time budget becoming the default limit, plus a one-time safety note on allergen additions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the highest-value rule (nothing already saved is lost) are front-loaded, and nearly every sentence carries distinct operational information. It is nonetheless a dense block for a 20-parameter tool, and the six inline utterance mappings plus the closing allergy caveat make it read as one long run-on rather than a structured list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 20 optional params, nested people objects, an output schema, and full annotations, the description covers what an agent needs: field routing, list merge semantics, clearing, downstream filtering effects, return shape (whole profile, read back in one short list), and the one caveat about whole-word exclusion. Nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 20 optional parameters and 75% schema coverage, the description compensates well: it explains aggregation semantics for list fields, the 0-clears-a-number convention, the self=true plus role=adult pairing that makes who=['me'] work, and role vocabulary that lets a search name a group. These are behaviors the schema alone would leave ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource — save what the user says about how they eat, persisted across sessions and clients — which immediately separates it from read-side siblings like get_profile and get_household. The utterance-to-field mappings ("we don't eat cilantro" is add_dislikes) make the resource concrete rather than abstract.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It doesn't just say when to use it, it routes raw user language into the right field for six example utterances, then states the placement rule that agents most often get wrong: an individual's restriction goes under people, an everyone-avoids item goes on the household lists, and anything with no field goes in notes. It also specifies read-back behavior ("read it back to the user in one short list").

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.