Save preferences
set_user_prefsSave the shopper's default size and/or fit on their allover.art account, so later chats can skip asking. Call it only when the human states a size or fit or asks you to remember one; read it back with get_user_prefs. Pass only what they stated: an omitted field keeps its saved value, an empty string clears it. size is XS, S, M, L, XL or 2XL–5XL (case-insensitive); fit is basic or oversized. The saved size fills in add_to_cart when size is omitted, and the fit maps to search_products style (basic → tee, oversized → oversized). Any other size or fit returns an error and saves nothing. ai_opt_in (true or false) saves the AI tools switch — pass it only when they say so. It turns AI tools on or off for a designer or an admin; a shopper's AI tools stay on whatever it says. While the account does not keep this choice yet it returns an error and saves nothing.
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": "set_user_prefs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Fit preference: basic or oversized; empty string clears it. | |
| size | No | Default size: XS, S, M, L, XL, 2XL…5XL; empty string clears it. | |
| ai_opt_in | No | The AI tools switch: true — on, false — off (for designers and admins; a shopper keeps AI tools either way). Omit to keep the saved choice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| size | No | ||
| error | No | ||
| ai_opt_in | No | The AI tools switch as saved now; absent while the account does not keep this choice yet. |