Skip to main content
Glama
canopy-labs

Featureflip

Official

Mark a flag permanent or temporary

set_flag_permanent
Idempotent

Mark a feature flag as permanent to keep kill switches, ops toggles, or entitlement gates from being listed as stale or removal candidates, or set it back to temporary.

Instructions

Mark a flag permanent (a kill switch, ops toggle or entitlement gate that is meant to stay), or pass permanent: false to make it temporary again. Permanent flags are never listed as removal candidates or by find_stale_flags; evaluation never changes. Marking is refused with PERMANENT_FLAG_HAS_EXPIRY while the flag has an expiry date (clear it first with set_flag_expiry and expiresAtUtc: null), with FEATURE_NOT_ENABLED while permanent flags are not enabled for the organization, and on an archived flag. Making a flag temporary is always allowed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagYesFlag key or id
projectYesProject key
permanentYestrue to mark the flag permanent, false to make it temporary

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
flagYes
projectYes
permanentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare idempotentHint and destructiveHint, so the description carries the real behavioral burden and does so well: permanent flags are excluded from removal candidates and find_stale_flags, evaluation never changes, and the specific refusal codes (PERMANENT_FLAG_HAS_EXPIRY, FEATURE_NOT_ENABLED, archived flag) are enumerated. It also notes that making a flag temporary is always allowed, defining the asymmetric failure modes.

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 dense sentences, front-loaded with the positive case and the permanent:false escape hatch before the failure conditions. Every clause (exclusion from find_stale_flags, refusal codes, always-allowed revert) adds distinct, actionable information with no filler.

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?

With an output schema already present, the description need not explain return values, and it instead covers the preconditions, error conditions, and downstream effects an agent needs. For a 3-param mutation with clear annotations, nothing material is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining the effect of permanent: false (reverts to temporary) and the cross-parameter interaction with set_flag_expiry's expiresAtUtc: null. It adds semantic value without needing to restate key types already in the schema.

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 (mark a flag permanent/temporary) and immediately scopes what "permanent" means: a kill switch, ops toggle or entitlement gate. It is distinguishable from adjacent siblings like set_flag_expiry, which it explicitly references for the expiry-clearing prerequisite.

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 context for when to use it (flags meant to stay) and explicitly routes the dependency to set_flag_expiry with expiresAtUtc: null when an expiry blocks the change. It lacks an explicit 'when not to use vs alternatives' framing, so it stops short of a 5.

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