create_flag
Create a feature flag in Unleash by providing a name, type, and description to control feature releases, experiments, or system behavior.
Instructions
Create a new feature flag in Unleash.
This tool creates a feature flag with the specified configuration. Choose the appropriate flag type:
release: For gradual feature rollouts to users
experiment: For A/B tests and experiments
operational: For system behavior and operational toggles
kill-switch: For emergency shutdowns or circuit breakers
permission: For role-based access control
Best practices:
Use clear, descriptive names (e.g., "new-checkout-flow" not "flag1")
Write comprehensive descriptions explaining the flag's purpose
Choose the right type to signal intent and lifecycle
Plan for flag removal after successful rollout
See: https://docs.getunleash.io/topics/feature-flags/best-practices-using-feature-flags-at-scale
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID where the flag will be created (optional if UNLEASH_DEFAULT_PROJECT is set) | |
| name | Yes | Feature flag name (must be unique within the project). Use descriptive names like "new-checkout-flow" | |
| type | Yes | Feature flag type - determines the lifecycle and usage pattern | |
| description | Yes | Clear description of what this flag controls, why it exists, and when it should be removed | |
| impressionData | No | Enable impression data collection for analytics (optional, defaults to false) |