spending_trend
Track monthly or quarterly spend and period-over-period change, including zero-spend periods and flags for periods only partly within the selected range.
Instructions
Spend per month or quarter with period-over-period change. Periods with no spend are included as zero; periods only partly inside the range are flagged is_partial.
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "spending_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Exact category name, case-insensitive | |
| end_date | Yes | YYYY-MM-DD | |
| start_date | Yes | YYYY-MM-DD | |
| granularity | No | 'month' or 'quarter' | month |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | finance.expenses | |
| periods | Yes | ||
| category | Yes | ||
| currency | No | USD | |
| end_date | Yes | ||
| start_date | Yes | ||
| granularity | Yes | ||
| metric_version | No | finance-metrics/1 |