Compute multi-armed bandit traffic weights
experimentation_bandit-allocateNext-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Price $0.03 USDC. POST /api/v1/experimentation/bandit-allocate. 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": {
"policy": "<policy>",
"arms": "<arms>"
},
"name": "experimentation_bandit-allocate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arms | Yes | arms, array. Required. | |
| prior | No | prior, object. Required. | |
| policy | Yes | policy, string, one of thompson, ucb1. Required. | |
| minShare | No | minShare, number, from 0 to 0.5. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | policy. String. | |
| sources | No | sources. Array. | |
| weights | No | weights. Array. | |
| limitations | No | limitations. Array. |