MigrateStatsigExperimentsToWingify
Migrates Statsig experiments to Wingify feature flags by creating variables, metrics, variations, and a traffic-split testing rule so experiments can be recreated in Wingify.
Instructions
Migrate Statsig experiments to Wingify FE. For each experiment this tool: (1) lists all experiments from Statsig, (2) creates a Wingify feature flag whose variables are derived from the experiment's parameters (the control group provides the defaults, with an inferred data type per parameter), attaching all equivalent Wingify metrics from the experiment's primaryMetrics and secondaryMetrics when they exist in Wingify — the first primary metric is the sole Wingify primary goal, all other attached metrics are secondary — (3) creates a variation for each non-control group from its parameterValues, and (4) creates a FLAG_TESTING rule that splits traffic across the control (default) and variations by each group's size. The testing rule is enabled when the Statsig experiment is live (status active or running), using rule ids from the create response; the feature flag itself stays disabled after migration. Run metrics migration first so product/custom metrics exist in Wingify.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "MigrateStatsigExperimentsToWingify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environmentIdOrKey | No | Target Wingify environment id or key for the testing rule. Defaults to Production (id "1"). | 1 |