rule_amend
Replace an active categorization rule by ID with fully specified replacement terms, preserving both versions in the audit trail and returning a new rule ID.
Instructions
Supersede an active categorization rule by ID with fully specified replacement terms. Returns a new rule ID and retains both versions in the audit trail.
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": {
"company": "<company>",
"id": "<id>",
"account": "<account>"
},
"name": "rule_amend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| account | Yes | Account that receives each categorized line. | |
| company | Yes | ||
| contains | No | Condition: case-insensitive literal substring of the description. | |
| currency | No | Currency of the amount condition. Defaults to the book's currency. | |
| priority | No | The precedence of a rule. Higher values take precedence. | |
| amount_eq | No | Condition: exact line amount in major units. | |
| amount_gt | No | Condition: line amount greater than this, in major units. | |
| amount_lt | No | Condition: line amount less than this, in major units. | |
| direction | No | Condition: inflow when money arrived in the bank account, outflow when it left. | |
| set_project | No | Action: attribute each categorized line to this project. | |
| counterparty | No | Condition: the line is from or to this counterparty. A linked counterparty decides; otherwise the party's name must appear in the description. | |
| set_counterparty | No | Action: link each categorized transaction to this counterparty. |