create_transaction_rule
Automate transaction categorization by creating rules that match merchant patterns, assign categories, add tags, hide from reports, and set review status.
Instructions
Create a transaction auto-categorization rule. Merchant pattern → category, with optional tag, hide, and review actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_ids | No | Limit rule to specific accounts | |
| add_tag_ids | No | Tag IDs to add (use get_tags) | |
| amount_value | No | Amount threshold | |
| review_status | No | Set review status action | |
| amount_operator | No | Amount comparison: gt, lt, eq, between | |
| set_category_id | No | Category ID to assign (use get_categories) | |
| amount_is_expense | No | true = expense/outflow, false = income/inflow (default true) | |
| apply_to_existing | No | Apply rule to existing transactions (default false) | |
| hide_from_reports | No | Hide matching transactions from reports | |
| set_merchant_name | No | Merchant name to rename to | |
| merchant_criteria_value | No | Single merchant name/pattern to match | |
| merchant_criteria_values | No | Multiple merchant patterns (all share the same operator) | |
| merchant_criteria_operator | No | How to match merchant name: "contains" (default) or "eq" (exact) |