Categorize by merchant
categorizeSort spending into categories by merchant, many merchants in ONE call: each expense of a merchant still in other (scope=all: every expense of it) takes the category, and future bank syncs and imports put that merchant there whenever they bring no category of their own. Use it when spending sits in other (get_summary says sort_other): get_summary category=other group_by=merchant lists the merchants, and each answer here lists the next ones (still_in_other). Pass each name exactly as listed, with an expense category you can tell from it; leave out the ones you cannot. Income and transfers are never touched. Never one call per merchant.
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": {
"rules": "<rules>"
},
"name": "categorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | ||
| scope | No | other (default): only expenses still in other, so earlier choices stay. all: every expense of the merchant. | |
| period | No | Only for the still_in_other listing: the period the user is looking at, YYYY-MM or YYYY. The rules apply to every expense of the merchant. |