apply_plan
Creates a Flagsmith experiment from a plan: flag, variants, metrics, and a 0% live rollout, refusing if the plan's control differs from the current flag value. Safe to repeat.
Instructions
Create the multivariate flag, keyed variants, metrics and experiment in Flagsmith from a plan. The experiment is created with a live rollout of 0%, so no user is served a variant until it is started. Refuses if the plan's control is not what the flag serves today. Safe to repeat.
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": {
"plan": "<plan>"
},
"name": "apply_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | An experiment plan. | |
| dry_run | No | Only report what would be created. |