Save size/fit
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 value 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| size | No | ||
| error | No |