spending_breakdown
Summarize total spending or income by category, merchant, month, or account, convert totals to a reporting currency, and filter by date, account, category, or merchant.
Instructions
Total spending (or income) grouped by category, merchant, month or account, converted to one reporting currency.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spending_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max groups returned. | |
| month | No | Calendar month, YYYY-MM. | |
| account | No | Exact account name from list_accounts; omit for all accounts. | |
| date_to | No | Inclusive end, YYYY-MM-DD. | |
| category | No | Category filter. One of: groceries, restaurants, transport, fuel, utilities, telecom, subscriptions, health, shopping, electronics, entertainment, travel, education, rent, cash_withdrawal, transfers, fees, salary, other_income, uncategorized. | |
| currency | No | Reporting currency for converted totals. | UAH |
| group_by | No | Grouping key. | category |
| merchant | No | Merchant substring filter. | |
| date_from | No | Inclusive start, YYYY-MM-DD. | |
| direction | No | Sum spending or income. | expense |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| notes | Yes | ||
| currency | Yes | ||
| group_by | Yes | ||
| direction | Yes | ||
| grand_total | Yes |