add_category_rule
Add a keyword-to-category rule so matching transaction descriptions are categorized automatically; the rule saves locally and applies on the next categorization call.
Instructions
Teach the categorizer: transactions whose description contains the keyword will be assigned the category. Saved to the user's local rules file and applied on the next call. Only call after the user has confirmed the mapping.
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": {
"keyword": "<keyword>",
"category": "<category>"
},
"name": "add_category_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Only needed when creating a new category (default expense). | |
| keyword | Yes | Merchant text to match, e.g. 'blue bottle'. Case and punctuation are ignored. | |
| category | Yes | Category name, e.g. 'Dining'. A new name creates a new category. |