Market-basket association rules
predictive-analytics_market-basket-rulesMine frequent itemsets and association rules with support, confidence, lift, leverage and conviction from caller baskets. Price $0.04 USDC. POST /api/v1/predictive-analytics/market-basket-rules. An unpaid call returns the x402 payment terms and does not run.
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": {
"baskets": "<baskets>"
},
"name": "predictive-analytics_market-basket-rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baskets | Yes | baskets, array. Required. | |
| maxRules | No | maxRules, integer, from 1 to 100000. Required. | |
| minSupport | No | minSupport, number, from any to 1. Required. | |
| minConfidence | No | minConfidence, number, from any to 1. Required. | |
| maxItemsetSize | No | maxItemsetSize, integer, from 2 to 10. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | rules. Array. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. |