Create an experiment
create_experiment[writes flayr data · write scope] Creates an A/B experiment. Then tag drafts with its label (experiment:) and <compareKey>:<variant> via update_content labels, publish them, and read get_experiment_results.
(Wraps POST /api/v2/experiments.)
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>"
},
"name": "create_experiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| endAt | No | ||
| notes | No | ||
| status | No | ||
| brandId | No | A brand id, or "personal" (default). | |
| startAt | No | ||
| variants | No | ||
| compareKey | No | ||
| hypothesis | No | ||
| primaryMetric | No |