RFM scoring and named customer segments
predictive-analytics_rfm-segmentScore customers 1–bins on recency, frequency and monetary value with average ranks for ties, then map scores to Champions/Loyal/New/At risk/Hibernating or a custom rule list. Price $0.03 USDC. POST /api/v1/predictive-analytics/rfm-segment. An unpaid call returns the x402 payment terms and does not run.
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": "predictive-analytics_rfm-segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | asOf, string. Optional. | |
| bins | No | bins, integer, from 3 to 10. Required. | |
| customers | No | customers, array. Optional. | |
| segmentMap | No | segmentMap, value. Required. | default |
| transactions | No | transactions, array. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | sources. Array. | |
| segments | No | segments. Array. | |
| customers | No | customers. Array. | |
| limitations | No | limitations. Array. |