get_pivot_report
Cross-tab spending or income: rows by category, subcategory, payee or tag against time columns (yearly, quarterly, monthly, weekly), with row and column totals, in the base currency. Splits are distributed and refunds netted, so a refunded amount never counts as spend.
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>",
"granularity": "<granularity>",
"rowDimension": "<rowDimension>",
"measure": "<measure>"
},
"name": "get_pivot_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Period end (YYYY-MM-DD, inclusive) | |
| from | Yes | Period start (YYYY-MM-DD, inclusive) | |
| measure | Yes | What to sum: expense or income | |
| payeeIds | No | Only these payees | |
| accountIds | No | Only these accounts | |
| categoryIds | No | Only these categories (a parent includes its subcategories) | |
| granularity | Yes | Column size: yearly, quarterly, monthly or weekly | |
| rowDimension | Yes | What the rows are: category, subcategory, payee or tag |