Skip to main content
Glama
Featureflip

Featureflip

Official

Restore archived flag

restore_flag

Restore a previously archived Featureflip feature flag by project and flag key or ID so it becomes active again.

Instructions

Restore a previously archived flag.

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

Input Schema

NameRequiredDescriptionDefault
flagYesFlag key or id
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. First observedv0.1.6

TDQS

B3.3/5.0
Behavior2/5

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

The annotation destructiveHint=false is consistent with a restore operation, so there is no contradiction. Beyond that, the description adds no behavioral context: it does not explain reversibility, permission requirements, or the effect on flag configuration, relying entirely on the title and annotation for the safety profile.

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?

The single sentence is front-loaded, waste-free, and appropriately sized for a simple mutation tool. It could be slightly stronger if it stated the archived-state precondition more explicitly, but it does not bury or dilute the core action.

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

Completeness4/5

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

For a simple three-parameter restore operation with an output schema, full parameter documentation, and a non-destructive annotation, the description supplies enough to call the tool correctly. The remaining gap is guidance on edge cases, such as restoring a flag that is not archived.

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 description coverage is 100%, so all three parameters are already documented, including the audit-log reason requirement for critical environments. The description adds no parameter-level meaning beyond implying that the flag argument references an archived flag, which is the baseline expectation when the schema does the heavy lifting.

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

Purpose4/5

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

The description pairs a specific verb (Restore) with a specific resource (a previously archived flag), making the operation clear. It does not explicitly distinguish itself from siblings like archive_flag, delete_flag, or update_flag, so an agent must infer the inverse relationship from the word 'previously archived'.

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

Usage Guidelines3/5

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

The phrase 'previously archived' implies the precondition that the flag must currently be archived, which is useful context. However, there is no explicit when-to-use guidance, no mention of alternatives for unarchiving versus deleting, and no statement of what happens if the flag is not archived.

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