CreateFeatureFlagRules
Creates feature flag rules to control rollout, testing, multivariate, or personalized targeting for a feature in a selected environment, with SDK-specific input and traffic allocation.
Instructions
Create a single or multiple feature flag rules
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": {
"environmentIdOrKey": "<environmentIdOrKey>",
"featureIdOrKey": "<featureIdOrKey>",
"sdk": "<sdk>",
"featureRule": "<featureRule>"
},
"name": "CreateFeatureFlagRules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdk | Yes | Check the SDK using the file extension and select the SDK accordingly. | |
| featureRule | Yes | Feature rule to be created for the feature flag. If not provided, create one rollout and one testing rule. | |
| featureIdOrKey | Yes | Prompt the user to select the feature id or key from the list of features. | |
| environmentIdOrKey | Yes | Prompt the user to select the environment id or key from the list of environments. |