create_experiment
Create a new A/B test with variants, hypothesis, and metrics; get experiment and variant IDs plus SDK installation instructions for your codebase.
Instructions
Create a new A/B test. Returns the experiment ID, variant IDs, and SDK installation instructions. The installation snippet in the text block is what the agent should paste into the user's codebase. Variant IDs are server-assigned slugs (control, variant_b, variant_c, ...) — use those (not the variant names) when calling ship_winner later.
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": {
"name": "<name>",
"hypothesis": "<hypothesis>",
"variants": "<variants>",
"metrics": "<metrics>"
},
"name": "create_experiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short human-readable name. | |
| metrics | Yes | Primary metric first. Secondary metrics track side-effects (e.g. pageviews alongside signups). | |
| platform | No | other | |
| variants | Yes | Control first, then 1-4 test variants. IDs are server-generated (control, variant_b, variant_c, ...). | |
| hypothesis | Yes | What you expect will happen and why. | |
| decision_mode | No | quick_decision |