Update a rule
update_ruleChange a rule's label, source or conditions, only when the person asks; an empty text clears a text condition, the label or the source (a rule keeps at least one of the two). Lines it labelled before keep their label. apply: true runs the changed rule over the lines already there again.
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": {
"id": "<id>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The rule's id, from list_rules. | |
| sign | No | in: money in only. out: money out only. | |
| apply | No | ||
| label | No | ||
| source | No | The source the lines get (where the receipt is found), by name or id; a rule may set a source instead of a label, or both. In update_rule an empty text takes it off. | |
| transfer | No | true: only lines with their other half on another of the person's accounts (out on one, in on the other, the same or the next day). | |
| amountMax | No | The amount's size is at most this (either sign). | |
| amountMin | No | The amount's size is at least this (either sign). | |
| textEquals | No | The bank's text, the merchant or the counterparty is exactly this, any case, like KOSTNAD/CHARGES. | |
| bankAccount | No | Only lines on this bank account (name or id). | |
| textContains | No | The bank's text, the merchant or the counterparty contains this, any case. |