rule_match
Test a candidate bank line against categorization rules before posting; returns the matching rule or no match.
Instructions
Check a candidate bank line without posting: description, plus optional direction (inflow or outflow), positive amount with currency, and linked counterparty. A condition on a fact you omit does not hold. Returns outcome=match with the winning rule or outcome=no_match.
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>",
"description": "<description>"
},
"name": "rule_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Positive line amount in major units. | |
| company | Yes | ||
| currency | No | Currency of the amount. Defaults to the book's currency. | |
| direction | No | Inflow when money arrived in the bank account, outflow when it left. | |
| description | Yes | ||
| counterparty | No | Counterparty already linked to the line, if any. |