Skip to main content
Glama
Featureflip

Featureflip

Official

Update feature flag metadata

update_flag
Destructive

Update 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

NameRequiredDescriptionDefault
flagYesFlag key or id
nameNoNew display name
tagsNoReplaces the whole tag list
reasonNoWhy 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.
ifMatchNoetag 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.
projectYesProject key
descriptionNoNew description; "" clears it
clientSideVisibleNoExpose to client-side SDKs (browser/mobile); false hides the flag from them entirely

Output Schema

NameRequiredDescriptionDefault
etagNoETag 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.
flagYes
projectYes
updatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
  2. Changed7 schema fields changedv0.3.0
    • addedInput schema / properties / clientSideVisible / description
      Added value: +"Expose to client-side SDKs (browser/mobile); false hides the flag from them entirely"
    • addedInput schema / properties / description / description
      Added value: +"New description; \"\" clears it"
    • addedInput schema / properties / ifMatch
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / name / description
      Added value: +"New display name"
    • addedInput schema / properties / project / description
      Added value: +"Project key"
    • addedInput schema / properties / tags / description
      Added value: +"Replaces the whole tag list"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "etag": {
      +      "description": "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.",
      +      "type": "string"
      +    },
      +    "flag": {
      +      "type": "string"
      +    },
      +    "project": {
      +      "type": "string"
      +    },
      +    "updated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "project",
      +    "flag",
      +    "updated"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.1.6

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations carry only destructiveHint=true, so the description does the heavy lifting and does it: partial-update semantics ("changes only the fields you pass and keeps the rest"), the critical-environment reason requirement, how to clear a value, and the optimistic-concurrency contract with a concrete 412 refusal and recovery path. It also warns that tags replacement and clientSideVisible changes have wider blast radius, which is the kind of context annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Roughly five tight sentences with no filler, and the mutable-field scope is front-loaded before the alternatives and the etag mechanics. The telegraphic, clause-chained style ("pass description: \"\" to clear it") occasionally reads as shorthand rather than prose, which costs it the top mark but not the substance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation tool with an output schema already covering return values, the description supplies everything an agent needs: partial-update behavior, conditional reason requirement, concurrency control, clearing syntax, and immutability. Nothing material is deferred to trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the baseline is 3, but the description adds behavior the schema does not: only supplied fields are mutated, while everything else is preserved, and key/type are refused outright. The ifMatch and clearing notes largely restate schema text, which keeps this below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Update flag name/description/tags/clientSideVisible" gives a specific verb plus an explicit whitelist of mutable fields, and immediately rules out what is not mutable ("Key and type are immutable"). It also names the siblings that handle behavior changes, so an agent can separate this from toggle_flag and update_targeting without comparing schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It routes explicitly: use toggle_flag / update_targeting for behavior changes, and pass ifMatch when you want the write refused if the flag changed since get_flag. The one conditional prerequisite in the domain — a reason is required when any environment of the project is critical — is stated up front rather than left for the agent to discover via an error.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.