Simulate ERDL Rule
erdl_simulateTest proposed rules against three scenarios before creation to prevent rules that sound correct but fail in practice.
Instructions
Test a potential rule against 3 scenarios BEFORE creating it. This prevents "wishful thinking" rules that sound right but don't work.
Always call this BEFORE erdl_create_rule when the user says "remember this" or "create a rule". Show the simulation results and ask if the user wants to proceed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Rule category | |
| decision | Yes | What happens when rule matches | |
| keywords | Yes | Tool names or args values to match | |
| ruleName | Yes | Proposed rule name | |
| triggers | No | Tool name triggers (e.g., ["exec", "write_file"]) | |
| instruction | Yes | The instruction or reason |