Check a trading rule
check_ruleValidates a rule in Dolphin's rule language and returns it cleaned, in plain words, with any warnings (e.g. leverage) - or exactly what is wrong. Use before backtest_rule, or to help someone write a rule for their Dolphin agent. A rule can also ask Jev (TypeSafe's decision model) to approve each buy - confirm: { brain: "jev", minPct: 60 } - which runs on Dolphin with the person's own Jev key.
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": {
"rule": "<rule>"
},
"name": "check_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | A trading rule in Dolphin's rule language - the same one the build chat writes and the live engine runs. |