Start A/B Test
lexq_ab_test_startStart an A/B test on a policy group. Requires a challenger version ID and traffic rate. The challenger must be a published version of the same group; a version from another group is rejected with P-016. The split is computed from contexts.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%. An execution request that still sends a field under the old name "context" (now "contexts") is rejected with C-001 (400), even when its value is empty or null. Starting cancels the group's pending scheduled deployment. Starting while a test is already running replaces its challenger and traffic rate.
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": {
"groupId": "<groupId>",
"testVersionId": "<testVersionId>",
"trafficRate": "<trafficRate>"
},
"name": "lexq_ab_test_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Policy group ID | |
| trafficRate | Yes | Traffic percentage routed to challenger (1-99) | |
| testVersionId | Yes | Challenger version ID. Must be a published version of this group |