get_cumulative_stats
Get running totals of expenses, income or savings by month for a period, next to the period of the same length right before it, plus the percent change, in the base currency. Use it for "am I spending more than last quarter so far".
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": {
"from": "<from>",
"to": "<to>",
"metric": "<metric>"
},
"name": "get_cumulative_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Period end (YYYY-MM-DD, inclusive) | |
| from | Yes | Period start (YYYY-MM-DD, inclusive) | |
| metric | Yes | What to accumulate: expenses, income or savings | |
| tagIds | No | Only transactions with these tags | |
| payeeIds | No | Only these payees | |
| accountId | No | Only this account | |
| accountIds | No | Only these accounts (wins over accountId) | |
| categoryIds | No | Only these categories (a parent includes its subcategories) | |
| excludedTagIds | No | Leave out transactions with these tags | |
| excludedPayeeIds | No | Leave out these payees | |
| excludedCategoryIds | No | Leave out these categories (a parent hides its subcategories) |