Turn a flag on or off
set_flagTurn a flag on or off in one environment, by flag key and environment key. When turning a flag on, rolloutPercent says who gets it: 100 for everyone, or a percentage of users. Ask the user whether it should be on for everyone. Without rolloutPercent it's 0, which turns it on only for the environment's testers. Changing production needs confirmProduction: true. Only send that after the user has confirmed the change.
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": {
"applicationId": "<applicationId>",
"flagKey": "<flagKey>",
"environment": "<environment>",
"enabled": "<enabled>"
},
"name": "set_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| flagKey | Yes | ||
| environment | Yes | ||
| applicationId | Yes | ||
| rolloutPercent | No | ||
| confirmProduction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| flagKey | Yes | ||
| environment | Yes | ||
| rolloutPercent | Yes |