Bank rules and what they catch
rulesThe bank rules of the company (round 620), in the order they run: what=list gives each rule's id, name, priority (lower runs earlier), conditions, accounts and tax codes, narration and how often it worked in the last 30 days; what=test with rule (in the shape a rule is written) or rule_id gives the lines to explain the rule would catch now and how many of them an earlier rule catches before it. 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | ||
| what | No | list | |
| company | No | ||
| rule_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||