Summarize spending or income
moneylover_summarize_spendingTotal income or expenses per category over a date range, grouped by currency, to answer how much was spent on something or earned in a period. Use for every total or comparison.
Instructions
Total income or expenses per category over a date range, grouped by currency: the answer to 'how much did I spend on X' or 'what did I earn this month'. Use it for every total or comparison; use moneylover_list_transactions for individual entries and moneylover_list_categories to see which categories exist. Behavior: type selects the side to total; since expense is the default, an earnings question must pass "income". There is no category filter, so read a single category's total from its entry in the breakdown. wallet narrows the total to one wallet; omit it to total every wallet, also archived ones and those excluded from Money Lover's total. Currencies are never added together, so the response has one entry per currency with its own total and category breakdown, largest first, and an empty list means no activity in the range rather than zero. Transactions flagged 'exclude from report' are left out (moneylover_list_transactions still shows them). The range is inclusive and limited to 366 days per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Which side to total: "expense" (spending) or "income" (earnings). Defaults to "expense". | |
| wallet | No | Wallet name, exactly as returned by moneylover_list_wallets. Omit to total across all wallets, including archived ones and those excluded from Money Lover's total. | |
| end_date | Yes | Last day of the range, inclusive, as YYYY-MM-DD. Must not be before start_date; the whole range may span at most 366 days. | |
| start_date | Yes | First day of the range, inclusive, as YYYY-MM-DD in the user's timezone, e.g. "2026-04-01". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Reminder that transactions flagged "exclude from report" are not counted. | |
| type | Yes | ||
| end_date | Yes | Last day of the range, inclusive. | |
| currencies | Yes | One entry per currency; amounts in different currencies are never added together. | |
| start_date | Yes | First day of the range, inclusive. |