Toggle flag in environment
toggle_flagEnable or disable a feature flag in a single environment, taking effect on live evaluation immediately. Set the environment and flag key to control rollout state.
Instructions
Enable or disable a flag in ONE environment. Affects live evaluation immediately — double-check the 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": {
"project": "<project>",
"flag": "<flag>",
"environment": "<environment>",
"enabled": "<enabled>"
},
"name": "toggle_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag key or id | |
| reason | No | Why you are making this change. Recorded in the audit log, and required when the environment (or, for project-wide changes, any environment in the project) is marked critical. | |
| enabled | Yes | true to turn the flag on in this environment, false to turn it off | |
| project | Yes | Project key | |
| environment | Yes | Environment key, e.g. production | |
| freeze_override | No | Owner/Admin only: break an active change freeze for this one change. Requires `reason`. Use it only after a change_frozen error says can_override is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | ||
| enabled | Yes | ||
| project | Yes | ||
| environment | Yes |