Categorize spending
categorize_spendingUse this when the user pastes or lists bank or credit card transactions (date, description, amount) and asks where their money goes, to categorize spending, make a budget from them, or find subscriptions and recurring charges. Accepts a list of rows or pasted text/CSV. Returns the same report as generate_spending_report: spending by category, income vs spending, monthly totals, top merchants, recurring charges with cost per year, uncategorized merchants, Excel and PDF downloads. To correct categories, call again with the same rows and category_overrides. Use generate_spending_report when a statement file is attached. Does not connect to banks and does not give financial advice.
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": {
"transactions": "<transactions>"
},
"name": "categorize_spending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_order | No | Optional: order of numeric dates such as 03/04/2026: MDY (US, default) or DMY (day first). Example: DMY. | |
| account_type | No | Optional: bank (checking or savings) or credit_card. Default: detected from the file; pasted rows count as bank. Example: credit_card. | |
| transactions | Yes | The transactions: a list like [{"date":"2026-09-02","description":"NETFLIX.COM","amount":-15.49}], or the rows pasted as text or CSV, e.g. "09/02/2026, NETFLIX.COM, -15.49". Money out negative, money in positive. Up to 20,000 rows. | |
| statement_year | No | Optional: the year for dates printed without one, e.g. 2026. | |
| category_overrides | No | Optional: your category for merchants the rules got wrong or left Uncategorized, keyed by the merchant name shown in the result. Example: {"Blue Bottle":"Dining","Riverbend Design":"Income","Venmo":"Transfers"}. Also accepts "Blue Bottle=Dining; Acme=Income". Categories: Groceries, Dining, Transport, Travel, Shopping, Subscriptions, Utilities, Rent & mortgage, Health, Insurance, Entertainment, Cash & ATM, Fees & interest, Payments to people, Income, Transfers (not counted), or a new name such as Pets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | ||
| months | Yes | ||
| source | Yes | ||
| totals | Yes | ||
| headline | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| recurring | Yes | ||
| categories | Yes | ||
| top_merchants | Yes | ||
| uncategorized | Yes | ||
| overrides_applied | Yes |