Update feature flag metadata
update_flagUpdate a feature flag's name, description, tags, or client-side visibility while preserving unspecified fields; use etag checks to avoid overwriting concurrent changes.
Instructions
Update flag name/description/tags/clientSideVisible. Changes only the fields you pass and keeps the rest; changing clientSideVisible needs a reason when any environment of the project is critical. pass description: "" to clear it. Key and type are immutable. Use toggle_flag / update_targeting for behavior changes. Pass ifMatch (the etag from get_flag) to refuse the write if the flag changed since you read 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>"
},
"name": "update_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Flag key or id | |
| name | No | New display name | |
| tags | No | Replaces the whole tag list | |
| 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. | |
| ifMatch | No | etag from get_flag. The write is refused with 412 if the resource changed since that read; re-read and re-apply. Omit to write unconditionally. | |
| project | Yes | Project key | |
| description | No | New description; "" clears it | |
| clientSideVisible | No | Expose to client-side SDKs (browser/mobile); false hides the flag from them entirely |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | No | ETag of what this write left behind. Pass it as ifMatch on the next update to chain writes without re-reading. Absent when the API sent none; read the resource again before the next conditional write. | |
| flag | Yes | ||
| project | Yes | ||
| updated | Yes |