Spending summary
get_summaryTotals for a period, computed server-side in the user's base currency. Breaks down expenses (default) or income: 'how much did I spend on X in July', 'what does my June income consist of'. Supports category drill-down (category=subscriptions + group_by=merchant), exclusions (exclude_categories), week-by-week views (group_by=week), comparison with the period before (compare=previous: 'how does this week compare to last week') and totals in another currency (currency=USD).
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": "get_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Date as YYYY-MM-DD. Omit for today. | |
| from | No | Date as YYYY-MM-DD. Omit for today. | |
| type | No | Which side the groups break down. Default: expense. Use income for 'where does my income come from'. | |
| entity | No | personal or business only. Omit for everything. | |
| period | No | YYYY-MM or YYYY. Defaults to the current month. | |
| compare | No | previous: also return the period before (the previous month, year or same-length window; for a period still running, the same number of days of the one before) and each category's or merchant's change. | |
| category | No | Only this category, e.g. subscriptions with group_by=merchant to see what the subscriptions consist of. | |
| currency | No | Report in this currency instead of the base: every record is converted at its own date's rate (e.g. USD totals for peso spending). | |
| group_by | No | Default: category. week = Monday-to-Sunday weeks. | |
| trend_months | No | Month-by-month expense and income for the last N months (at most 24) instead of one period (optionally one expense category or one entity): 'how did my spending change since spring'. | |
| exclude_categories | No | Drop these categories from totals and groups, e.g. ['business'] for personal stats without business-categorized records. |