Suggest Curves for Items
suggest_curves_for_itemsWhich existing demand curve fits these items best? Derives the items' observed 12-month seasonal shape from their sales history and ranks the tenant's seasonal curves by cosine similarity to it (best fit first, 0..1). Use before apply_demand_curve_to_items to pick a curve for a batch of items; when hasSignal is false the items have too little history to compare — judge individual items with get_item_seasonal_shape instead. Item ids come from list_items. The ids must belong to the targeted catalog: a client-pinned credential profiles its own client's items, and an operator (unpinned) credential profiles the house catalog unless clientId targets a client's items. Max 500 ids per call (the shape is computed from a bounded freshest-item sample, so a representative batch is enough).
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": {
"itemIds": "<itemIds>"
},
"name": "suggest_curves_for_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemIds | Yes | Item ids (GUIDs) to profile, max 500 per call. | |
| clientId | No | Optional client id (GUID) for operator (unpinned) credentials on 3PL tenants: profiles that client's items instead of the house catalog — get ids from list_clients. Client-pinned credentials omit this; the credential decides. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| hasSignal | No | ||
| suggestions | No | ||
| notFoundHint | No | ||
| notFoundCount | No | ||
| observedShape | No | ||
| matchedItemCount | No | ||
| contributingItemCount | No |