Skip to main content
Glama
Featureflip

Featureflip

Official

Toggle flag in environment

toggle_flag
Destructive

Enable or disable a feature flag in a single environment, taking effect on live evaluation immediately. Set the environment and flag key to control rollout state.

Instructions

Enable or disable a flag in ONE environment. Affects live evaluation immediately — double-check the environment.

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>",
      "environment": "<environment>",
      "enabled": "<enabled>"
    },
    "name": "toggle_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.
enabledYestrue to turn the flag on in this environment, false to turn it off
projectYesProject key
environmentYesEnvironment key, e.g. production
freeze_overrideNoOwner/Admin only: break an active change freeze for this one change. Requires `reason`. Use it only after a change_frozen error says can_override is true.

Output Schema

NameRequiredDescriptionDefault
flagYes
enabledYes
projectYes
environmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.1
    • addedInput schema / properties / freeze_override
      Added value: +{
      +  "description": "Owner/Admin only: break an active change freeze for this one change. Requires `reason`. Use it only after a change_frozen error says can_override is true.",
      +  "type": "boolean"
      +}
  2. 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"
      +}
  3. Changed3 schema fields changedv0.3.0
    • addedInput schema / properties / enabled / description
      Added value: +"true to turn the flag on in this environment, false to turn it off"
    • addedInput schema / properties / project / description
      Added value: +"Project key"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "environment": {
      +      "type": "string"
      +    },
      +    "flag": {
      +      "type": "string"
      +    },
      +    "project": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "project",
      +    "flag",
      +    "environment",
      +    "enabled"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.1.6

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the destructiveHint annotation, it discloses that the change affects live evaluation immediately and is confined to one environment, which is exactly the risk context an agent needs before flipping a production flag. It omits the freeze-override path and the audit-log reason requirement, but both are fully documented in the schema.

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

Conciseness5/5

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

Two short sentences, action and scope front-loaded, with the warning second. No wasted wording.

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?

With annotations, a complete input schema, and an output schema, the description covers the essential behavior for a mutation tool; only the change-freeze interaction is left entirely to the schema. Adequate but not exhaustive.

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 the schema already explains every parameter including reason, freeze_override, and enabled. The description only reinforces the 'ONE environment' scoping; baseline 3 applies.

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?

States a specific verb and resource ('Enable or disable a flag') and scopes it explicitly to 'ONE environment', which implicitly distinguishes it from project-wide or config-level siblings. It does not name an alternative outright, so the differentiation is inferred rather than stated.

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 description gives an implied usage condition (toggling a flag's on/off state in a single environment) plus a caution to 'double-check the environment'. It never says when to prefer a sibling such as update_flag_environment_config, nor does it mention prerequisites like change freezes.

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