Unleash MCP (Feature Toggle)

by cuongtl1992
Verified

updateStrategy

Modify strategy configurations for feature flags in specific environments, enabling dynamic behavior updates based on constraints and parameters within the Unleash MCP system.

Instructions

Update a strategy configuration for a feature flag in the specified environment

Input Schema

NameRequiredDescriptionDefault
constraintsNoConstraints for the strategy
environmentYesEnvironment name (e.g., development, production)
featureNameYesName of the feature flag
nameYesStrategy name (e.g., default, userWithId, gradualRollout)
parametersNoParameters for the strategy as key-value pairs
projectIdYesID of the project
strategyIdYesID of the strategy to update

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "constraints": { "description": "Constraints for the strategy", "items": { "additionalProperties": false, "properties": { "contextName": { "description": "Context field name", "type": "string" }, "operator": { "description": "Operator (e.g., IN, NOT_IN, STR_CONTAINS)", "type": "string" }, "values": { "description": "Array of values to compare against", "items": { "type": "string" }, "type": "array" } }, "required": [ "contextName", "operator", "values" ], "type": "object" }, "type": "array" }, "environment": { "description": "Environment name (e.g., development, production)", "minLength": 1, "type": "string" }, "featureName": { "description": "Name of the feature flag", "maxLength": 100, "minLength": 1, "pattern": "^[a-z0-9-_.]+$", "type": "string" }, "name": { "description": "Strategy name (e.g., default, userWithId, gradualRollout)", "minLength": 1, "type": "string" }, "parameters": { "additionalProperties": { "type": "string" }, "description": "Parameters for the strategy as key-value pairs", "type": "object" }, "projectId": { "description": "ID of the project", "minLength": 1, "type": "string" }, "strategyId": { "description": "ID of the strategy to update", "minLength": 1, "type": "string" } }, "required": [ "projectId", "featureName", "environment", "strategyId", "name" ], "type": "object" }
ID: u6de78ibn8