Update flag environment config
update_flag_environment_configUpdate a feature flag's per-environment serving configuration, including the default variation, serving strategy, and prerequisites, to control how the flag evaluates in a specific environment.
Instructions
Update a flag's per-environment serving config: defaultVariationId (served on fallthrough, required), strategy (SingleVariation | PercentageRollout | TargetedRollout — only SingleVariation is currently supported at the environment level), and prerequisites. Percentage rollouts are configured on targeting rules via update_targeting.
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": {
"project": "<project>",
"flag": "<flag>",
"environment": "<environment>",
"defaultVariationId": "<defaultVariationId>"
},
"name": "update_flag_environment_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag key or id | |
| reason | No | Why you are making this change. Recorded in the audit log, and required when the environment (or, for project-wide changes, any environment in the project) is marked critical. | |
| project | Yes | Project key | |
| strategy | No | Serving strategy; only SingleVariation is currently supported here | |
| environment | Yes | Environment key, e.g. production | |
| prerequisites | No | Flags that must evaluate to the expected variation before this flag serves. Omit to leave existing prerequisites untouched; pass a list (possibly empty) to replace them wholesale. | |
| freeze_override | No | Owner/Admin only: break an active change freeze for this one change. Requires `reason`. Use it only after a change_frozen error says can_override is true. | |
| defaultVariationId | Yes | Variation id to serve on fallthrough — required by the API |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | ||
| project | Yes | ||
| strategy | No | ||
| environment | Yes | ||
| prerequisites | No | ||
| defaultVariationId | Yes |