flag_generate_checks
Generate feature flag check utilities as middleware, decorators, helpers, or React hooks. Use flag names to gate features and control rollout across your code.
Instructions
Generate feature flag check utilities and middleware for gating features
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": {
"flag_names": "<flag_names>"
},
"name": "flag_generate_checks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| check_type | No | Type of flag check to generate | middleware |
| flag_names | Yes | Feature flag names to generate checks for (e.g. 'new-checkout', 'dark-mode') |