Create or update an environment
manage_environmentCreate a project environment or update its name, color, sort order, or change-reason settings. Use it to configure environments so every team can organize and track feature flag rollouts.
Instructions
Create an environment in a project, or change its name, color or sort order. action=create needs key + name; action=update needs environment and changes only the fields you pass. The key is immutable. Environments cannot be deleted from here. require_change_reason makes every write to the environment need a reason, and require_confirmation makes the dashboard ask for confirmation first; omit either on update to leave it unchanged. Turning either off needs an Admin or Owner token and a reason. A new environment needs an SDK key before apps can use it (manage_sdk_key).
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": {
"action": "<action>",
"project": "<project>"
},
"name": "manage_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | New environment key, required for create; immutable afterwards | |
| name | No | Display name; required for create | |
| color | No | Hex color shown in the dashboard, e.g. #22c55e | |
| action | Yes | create needs key + name; update needs environment | |
| 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 | |
| sortOrder | No | Position in environment lists, lowest first | |
| environment | No | Environment key to update; required for update | |
| require_confirmation | No | Require explicit confirmation in the dashboard before changes to this environment. Omit on update to leave unchanged | |
| require_change_reason | No | Mark the environment critical: every change to it must carry a reason. Omit on update to leave unchanged |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||