Write, change, move or end a bank rule
rule_setWrite, change, move or end a bank rule (round 620). action=add with rule; action=edit with rule_id and rule (the whole rule as it is to be: a rule is not changed in place, its successor replaces it on release); action=move with rule_id and way (up or down) moves it one place in the order; action=end with rule_id and reason ends it. Each is proposed and released as the owner's switches say, like every rule. rule: {name (default: the payee as written and its accounts), priority (lower runs earlier, default 400), payee and payee_op (contains, equals, starts_with, ends_with), reference and reference_op, direction (in or out), bank_account (its code), amount_op (eq, between, lt, gt, le, ge) with amount (and amount_to for between), account1, tax1 (tax code), type1 (percent or fixed) and value1, the same for 2 and 3 (the last line takes the rest), narration}. A rule names the payee or words of the reference.
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": {
"action": "<action>"
},
"name": "rule_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| way | No | ||
| rule | No | ||
| action | Yes | ||
| reason | No | ||
| company | No | ||
| rule_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||