Try a write against write rules
eval_write_ruleCheck one write against a rule set, as the API would, and say whether it would be allowed, denied (403) or failed (400), which statement decided it, and (with trace) what every expression evaluated to. The write is shaped like a rule test case: action, identity, token, old, new, patch, merge, now. Costs nothing and sees no data.
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": {
"rules": "<rules>",
"write": "<write>"
},
"name": "eval_write_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Items for lookups to find: { "<list>": { "<item id or alias>": { "data": ... } } } | |
| rules | Yes | The rule text, or its lines as an array (as in a schema sync document) | |
| trace | No | Include the value of every expression | |
| write | Yes | The write to check | |
| identities | No | Named identities the write can refer to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |