Rule

February 28, 2026 ยท View on GitHub

Example Usage

import { Rule } from "@launchdarkly/mcp-server/models/components";

let value: Rule = {
  clauses: [],
  trackEvents: true,
};

Fields

FieldTypeRequiredDescription
idstring:heavy_minus_sign:The flag rule ID
disabledboolean:heavy_minus_sign:Whether the rule is disabled
variationnumber:heavy_minus_sign:The index of the variation, from the array of variations for this flag
rolloutcomponents.Rollout:heavy_minus_sign:N/A
clausescomponents.Clause[]:heavy_check_mark:An array of clauses used for individual targeting based on attributes
trackEventsboolean:heavy_check_mark:Whether LaunchDarkly tracks events for this rule
descriptionstring:heavy_minus_sign:The rule description
refstring:heavy_minus_sign:N/A