Create a rule
create_ruleOnly on the person's yes. Lines that match every condition given get the label, the source, or both: now, once, on the lines already there (lines done keep their labels; a source goes on them too, except where one was set by hand), and on every import after. A label that means no receipt makes them not needed. At least one condition, and a label or a source. dryRun: true changes nothing and says how many lines it would take, with examples: do that first and tell the person. Answers the rule and how many lines it labelled.
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": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sign | No | in: money in only. out: money out only. | |
| label | No | The label's name or id, like Bank fee. Optional when source is given. | |
| dryRun | No | true: only say what it would take. | |
| 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. |