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.
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": {
"ruleName": "<ruleName>",
"category": "<category>",
"keywords": "<keywords>",
"decision": "<decision>",
"instruction": "<instruction>"
},
"name": "erdl_simulate"
}
}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 |