Add, update, or remove a variation
manage_variationAdd, update, or remove a feature flag's variations; update and remove require variation IDs, and removal fails when other flags depend on that variation.
Instructions
Manage a flag's variations. action=add requires key + value; action=update/remove require variationId (get ids via get_flag). Removing a variation fails with VARIATION_HAS_DEPENDENTS if other flags depend on it.
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>",
"action": "<action>"
},
"name": "manage_variation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Required for add; immutable afterwards | |
| flag | Yes | Flag key or id | |
| name | No | Display name | |
| value | No | Variation value serialized as a string; required for add | |
| action | Yes | add needs key + value; update and remove need variationId | |
| 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. | |
| project | Yes | Project key | |
| description | No | What this variation means | |
| variationId | No | Required for update/remove |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||