Create, update, rotate, or delete a flag trigger
manage_flag_triggerManage a flag's triggers in one environment. A trigger is a secret URL a monitoring tool POSTs to (no body) to turn the flag on (Enable) or off (Disable); calling it when the flag is already in that state changes nothing.
Instructions
Manage a flag's triggers in one environment. A trigger is a secret URL a monitoring tool POSTs to (no body) to turn the flag on (Enable) or off (Disable); calling it when the flag is already in that state changes nothing. action=create needs name + triggerAction and returns the URL ONCE. action=update needs trigger and changes only the fields you pass (name, description, enabled; enabled=false stops the URL working until re-enabled). action=rotate needs trigger: the old URL stops working at once and the new one is returned ONCE. action=delete needs trigger. The action (Enable/Disable) is fixed at creation. Creating, re-enabling and rotating need the Team plan or above; every write needs a Member token; at most 10 per flag per environment. To change the flag yourself, use toggle_flag instead.
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>",
"flag": "<flag>",
"environment": "<environment>"
},
"name": "manage_flag_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag key or id | |
| name | No | Trigger name, e.g. "Grafana: checkout error rate"; required for create | |
| action | Yes | create needs name + triggerAction; update, rotate and delete need trigger | |
| 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 | No | update only: false stops the URL working, true turns it back on | |
| project | Yes | Project key | |
| trigger | No | Trigger id (see list_flag_triggers); required for update, rotate and delete | |
| description | No | What calls the trigger and why; "" clears it | |
| environment | Yes | Environment key, e.g. production | |
| triggerAction | No | Required for create: Disable turns the flag off (a kill switch), Enable turns it on | |
| idempotency_key | No | Idempotency-Key header for create |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||