Assign units to experiment groups deterministically
experimentation_bucket-assignStateless SHA-256 bucketing of unit ids into an experiment with traffic gating, ordered group shares and an optional layer, documented so any SDK can reproduce it. Price $0.01 USDC. POST /api/v1/experimentation/bucket-assign. 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": {
"unitIds": "<unitIds>",
"experiment": "<experiment>"
},
"name": "experimentation_bucket-assign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | layer, value. Optional. | |
| unitIds | Yes | unitIds, array. Required. | |
| experiment | Yes | experiment, object. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | sources. Array. | |
| algorithm | No | algorithm. String. | |
| assignments | No | assignments. Array. | |
| limitations | No | limitations. Array. |