createFeatureFlag
Create a new feature flag in a specified environment to control feature releases and user experiences through configurable variations.
Instructions
Create a new feature flag in the specified environment
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": {
"id": "<id>",
"name": "<name>",
"variations": "<variations>",
"defaultOnVariationIndex": "<defaultOnVariationIndex>",
"defaultOffVariationIndex": "<defaultOffVariationIndex>"
},
"name": "createFeatureFlag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier for the feature flag (alphanumeric, hyphens, underscores) | |
| name | Yes | Human-readable name for the feature flag | |
| description | No | Description of the feature flag | |
| environmentId | No | Environment ID (uses default if not provided) | |
| variations | Yes | List of variations (at least 2 required) | |
| tags | No | Tags for the feature flag | |
| defaultOnVariationIndex | Yes | Index of the variation to serve when flag is on (0-based) | |
| defaultOffVariationIndex | Yes | Index of the variation to serve when flag is off (0-based) | |
| variationType | No | Type of the variation values (default: STRING) |