set_flag_rollout
Set the rollout percentage and variant allocation for a feature flag in a specific environment, configuring the flexible rollout strategy without enabling the flag.
Instructions
Configure or update a flexibleRollout strategy for a feature flag environment with an optional rollout percentage and variants. This does NOT enable the feature; call toggle_flag_environment to turn environments on or off.
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": {
"featureName": "<featureName>",
"environment": "<environment>",
"rolloutPercentage": "<rolloutPercentage>"
},
"name": "set_flag_rollout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional descriptive title for the strategy | |
| groupId | No | Group ID for stickiness bucketing (defaults to the feature name) | |
| disabled | No | Disable the strategy (defaults to false) | |
| variants | No | Optional list of strategy-level variants | |
| projectId | No | Project ID where the feature flag resides (optional if UNLEASH_DEFAULT_PROJECT is set) | |
| stickiness | No | Stickiness field (defaults to "default") | |
| environment | Yes | Target environment | |
| featureName | Yes | Feature flag name | |
| rolloutPercentage | Yes | Rollout percentage (0-100) |