Get spending summary
get_spending_summaryTotals income, expenses and the net balance (income minus expenses) for a period, with each category's record count and total. All amounts are converted to the user's display currency at the exchange rate of each record's date. Without startDate and endDate it covers the current calendar month in UTC, which can differ from the user's local month around its first and last day: pass the user's local dates (YYYY-MM-DD) when you know them.
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_spending_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Only count records whose description or category name contains this text (case-insensitive), or whose amount written with two decimals (e.g. 12.50) contains it. | |
| endDate | No | End of the period, inclusive (23:59:59 UTC for a date-only value). Format: YYYY-MM-DD or an RFC 3339 timestamp such as 2026-03-05T14:30:00Z. | |
| startDate | No | Start of the period, inclusive (00:00:00 UTC for a date-only value). Format: YYYY-MM-DD or an RFC 3339 timestamp such as 2026-03-05T14:30:00Z. | |
| paymentMethodIds | No | Only include records paid with one of these payment methods (IDs from list_payment_methods). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | ||
| currency | Yes | ||
| categories | Yes | ||
| netBalance | Yes | ||
| totalIncome | Yes | ||
| totalExpense | Yes |