CreateFeatureFlagWithDefaults
Create a ready-to-use feature flag with smart defaults for SDK, variables, variations, and rules, so you can set up flags in Wingify.
Instructions
Create a new ready-to-use feature flag with smart default values
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": {
"featureKey": "<featureKey>",
"sdk": "<sdk>",
"goals": "<goals>",
"variables": "<variables>",
"variations": "<variations>",
"featureRule": "<featureRule>"
},
"name": "CreateFeatureFlagWithDefaults"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdk | Yes | Prompt the user to select the SDK from the list of supported SDKs, if the SDK is not already selected. Ask the user to confirm the SDK before proceeding. Check the language using the file extension and select the SDK accordingly. | |
| name | No | ||
| goals | Yes | Use default metric name if no information is provided by user related to metric. | |
| variables | Yes | Variables are used to store the data for the feature flag | |
| featureKey | Yes | The key of the feature flag. Should only contain alphanumeric characters and underscores. Should be self explanatory according to the user's usercase. | |
| variations | Yes | At least one variation is required with different variable value | |
| description | No | ||
| featureRule | Yes | Feature rule to be created for the feature flag. If not provided, create one rollout and one testing rule. | |
| featureType | No | TEMPORARY | |
| environmentIdOrKey | No | Use default environment id if no information is provided by user related to environment. | 3 |