ynab_analyze_spending
Calculates income, spending, and net totals for an inclusive date range, grouped by category, payee, account, week, or month, using the complete period for accurate aggregation.
Instructions
Deterministically calculate income, spending, and net totals for an inclusive date range, grouped by category, payee, account, week, or month. Aggregates always use the complete fetched period before grouping.
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": {
"since_date": "<since_date>",
"until_date": "<until_date>",
"group_by": "<group_by>"
},
"name": "ynab_analyze_spending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_by | Yes | ||
| budget_id | No | ||
| since_date | Yes | ||
| until_date | Yes | ||
| include_transfers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cached | Yes | ||
| groups | Yes | ||
| period | Yes | ||
| totals | Yes | ||
| group_by | Yes | ||
| used_delta | Yes | ||
| excluded_transfer_count | Yes |