create_constraint
Define custom constraints for feature flag segments in Flipt MCP Server by specifying type, property, operator, and value to control targeted evaluations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | ||
namespaceKey | Yes | ||
operator | Yes | ||
property | Yes | ||
segmentKey | Yes | ||
type | Yes | ||
value | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"description": {
"type": "string"
},
"namespaceKey": {
"minLength": 1,
"type": "string"
},
"operator": {
"minLength": 1,
"type": "string"
},
"property": {
"minLength": 1,
"type": "string"
},
"segmentKey": {
"minLength": 1,
"type": "string"
},
"type": {
"enum": [
"STRING_COMPARISON_TYPE",
"NUMBER_COMPARISON_TYPE",
"BOOLEAN_COMPARISON_TYPE",
"DATETIME_COMPARISON_TYPE",
"ENTITY_ID_COMPARISON_TYPE"
],
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"namespaceKey",
"segmentKey",
"type",
"property",
"operator"
],
"type": "object"
}