Save user preferences
save_preferencesSaves the user's preferences under their personal code so they are selected by default in every new plan: tools they own and preferred non-consumable products (e.g. a tile brand, a specific boiler, a tap). Call when the user says what they own or which product they always want. Ticking 'have' and choosing an option in a saved plan updates preferences automatically. With no changes it just returns the current preferences.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_code": "<user_code>"
},
"name": "save_preferences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| forget | No | Material keys to forget | |
| materials | No | Preferred product per material key (non-consumables), e.g. {"floor_tiles": {name, price, store, url, country}} | |
| user_code | Yes | Personal code | |
| tools_have | No | Tool names the user owns (add) | |
| tools_remove | No | Tool names to remove from owned |