evaluate_json_logic
Evaluate JSON Logic rules against a context dataset to determine truth values using boolean, comparison, math, conditional, and array operations.
Instructions
Evaluates deterministic JSON Logic rules against a context dataset. Supports boolean, comparisons, math, conditionals, and array rules.
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": {
"rule": "<rule>"
},
"name": "evaluate_json_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Context data object (e.g., {"age": 21, "valid": true}) | |
| rule | Yes | JSON Logic rule object (e.g., {"and": [{">": [{"var": "age"}, 18]}, {"==": [{"var": "valid"}, true]}]}) |