get_trend_analysis
Gets income and/or expense budget trend analysis for a date range and period — the data behind the Trends report (per-bucket actual vs budget for chosen categories over time). Analyses across specified categories and all user scenarios by default. navigate_to_trends is the matching page link to offer alongside an answer.
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": {
"user_id": "<user_id>",
"period": "<period>",
"interval": "<interval>",
"start_date": "<start_date>",
"end_date": "<end_date>",
"categories": "<categories>"
},
"name": "get_trend_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | The period to analyse. | |
| user_id | Yes | The unique identifier of the user. | |
| end_date | Yes | End date for analysis (YYYY-MM-DD). | |
| interval | Yes | The period interval, e.g. 2 with period 'weeks' analyses fortnightly. | |
| scenarios | No | Optional comma-separated list of scenario IDs. Defaults to all user scenarios if omitted. Only provide to limit analysis to specific scenarios. | |
| categories | Yes | A comma-separated list of category IDs to analyse. | |
| start_date | Yes | Start date for analysis (YYYY-MM-DD). |