Skip to main content
Glama
Featureflip

Featureflip

Official

Archive feature flag

archive_flag
Destructive

Archives a Featureflip feature flag to soft-hide it and stop serving evaluations, with restore support. Refuses if dependent flags exist or live traffic is still evaluating it.

Instructions

Archive a flag (soft-hide, evaluation stops serving it). Reversible with restore_flag. Archive dependents first: refused with FLAG_HAS_DEPENDENTS while another live flag lists this one as a prerequisite, so archive those flags (blockedBy in find_stale_flags / list_removal_candidates) first. Refused with FLAG_RECENTLY_EVALUATED while live traffic is still evaluating the flag, because archiving makes every caller fall back to its own hardcoded default — normally that means the code removal has merged but not deployed yet, and the refusal clears itself once it has.

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": "archive_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagYesFlag key or id
forceNoArchive even though traffic is still evaluating the flag. Only for clients that can never be updated (old mobile app versions), where traffic will never drain on its own.
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.
projectYesProject key

Output Schema

NameRequiredDescriptionDefault
flagYes
archivedYes

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. Changed3 schema fields changedv0.3.0
    • addedInput schema / properties / flag / description
      Added value: +"Flag key or id"
    • addedInput schema / properties / project / description
      Added value: +"Project key"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "archived": {
      +      "type": "boolean"
      +    },
      +    "flag": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "flag",
      +    "archived"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changedv0.1.7
    • addedInput schema / properties / force
      Added value: +{
      +  "description": "Archive even though traffic is still evaluating the flag. Only for clients that can never be updated (old mobile app versions), where traffic will never drain on its own.",
      +  "type": "boolean"
      +}
  4. First observedv0.1.6

TDQS

A4.4/5.0
Behavior5/5

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

With only destructiveHint=true in annotations, the description carries real weight and does: it discloses the two refusal codes (FLAG_HAS_DEPENDENTS, FLAG_RECENTLY_EVALUATED), their exact causes, and the operational consequence that callers fall back to hardcoded defaults. That is precisely the behavioral context an agent needs before a destructive call.

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?

Front-loads the definition and reversibility before the failure modes, and every sentence contributes operational information. The FLAG_RECENTLY_EVALUATED sentence is long but its detail (merged-not-deployed code removal) is what makes the refusal actionable rather than noise.

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?

An output schema exists, so return values need no explanation, and the description covers effect, reversibility, prerequisites, and both documented failure modes for a destructive operation. Nothing material is missing for correct invocation.

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

Parameters3/5

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

Schema coverage is 100%, so 'force' and 'reason' are already fully documented in the schema, establishing the baseline of 3. The description's explanation of live traffic not draining is useful background for when force would be relevant, but it never mentions the parameter itself or its constraint.

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?

States a specific verb and resource plus the precise effect: 'Archive a flag (soft-hide, evaluation stops serving it)'. It also implicitly separates itself from delete_flag by defining the operation as a reversible soft-hide and names restore_flag as its inverse.

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

Usage Guidelines4/5

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

Gives clear conditions and redirects the agent to find_stale_flags / list_removal_candidates to locate blocking dependents, and to restore_flag to undo. It does not explicitly contrast with delete_flag for permanent removal, which is the one sibling an agent would most plausibly confuse this with.

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