Evaluate rules
evaluate-rulesRuns every rule targeting the given structure (plus element- and association-scoped rules for the structure's atoms), binds $Variable references to in-scope facts via qname lookup, writes one VerificationResult row per rule, and returns the results plus a status-keyed summary. Decoding mode, 6 patterns (EqualTo, RollUp, RollForward, SumEquals, Exists, CoExists).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"structure_id": "str_balance_sheet"
},
"name": "evaluate-rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | The entity whose facts bind, when no `fact_set_id` pins them; default the group parent. On a group, each entity's statements share the structure. | |
| period_end | No | Upper bound on the fact period window (inclusive). | |
| fact_set_id | No | Optional FactSet id to stamp on each VerificationResult row. Allows results to be scoped to a specific period run once write paths populate the FactSet table on every run. | |
| period_start | No | Lower bound on the fact period window (inclusive). | |
| structure_id | Yes | Structure to evaluate rules for. Resolves all rules scoped to this structure plus rules attached to its elements and associations. |