create_feature_flag
Generate and manage feature flags using a defined schema in the GrowthBook MCP Server. Specify ID, value type, default value, and file extension to create flags for controlled feature rollouts.
Instructions
Create, add, or wrap an element with a feature flag.
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>",
"valueType": "<valueType>",
"defaultValue": "<defaultValue>",
"fileExtension": "<fileExtension>"
},
"name": "create_feature_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| archived | No | Whether the feature flag is archived | |
| defaultValue | Yes | The default value of the feature flag | |
| description | No | A description of the feature flag | |
| fileExtension | Yes | The extension of the current file. If it's unclear, ask the user. | |
| id | Yes | A unique key name for the feature | |
| project | No | The project the feature flag belongs to | |
| tags | No | Tags for the feature flag | |
| valueType | Yes | The value type the feature flag will return |