Evaluate a feature-flag rule set
experimentation_flag-rule-evaluateEvaluate ordered feature-flag rules (attribute operators, semver comparison, deterministic percentage rollout) for one user context and explain which rule matched. Price $0.01 USDC. POST /api/v1/experimentation/flag-rule-evaluate. An unpaid call returns the x402 payment terms and does not run.
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": {
"flag": "<flag>",
"context": "<context>"
},
"name": "experimentation_flag-rule-evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | flag, object. Required. | |
| context | Yes | context, object. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace | No | trace. Array. | |
| value | No | value. Boolean. | |
| reason | No | reason. String. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. | |
| matchedRule | No | matchedRule. Null. |