test_rule
Preview transactions a rule would affect before execution, returning matching transactions without modifying any data.
Instructions
Preview which transactions a rule would match WITHOUT applying changes.
Use this before executing a rule to see what would be affected. This is a read-only operation - no transactions are modified.
Returns the list of matching transactions that would be changed if the rule is executed.
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": {
"req": "<req>"
},
"name": "test_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| req | Yes | Request model for testing a rule (preview matches). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | ID of the rule that was tested | |
| rule_title | Yes | Title of the rule that was tested | |
| matched_transactions | Yes | List of transactions that match the rule criteria. NOTE: These are the transactions that would be modified if the rule is executed, but they are shown here WITHOUT any modifications applied (preview mode). | |
| matched_transaction_count | Yes | Number of transactions that would be affected by this rule |