Compare Transaction Groups
compareContrast two filtered transaction sets side by side by sum, average, count, max, or min to reveal spending or income differences across categories, months, accounts, or products.
Instructions
Side-by-side metric comparison for two filtered groups of transactions (e.g. one category vs another, one month vs another). Scope defaults to all your completed statements; pass "scope" to narrow to specific accounts/products and/or a date range.
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": {
"filterA": "<filterA>",
"filterB": "<filterB>",
"metric": "<metric>"
},
"name": "compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optional structural scope (WHO × WHEN). Omit to search across all your completed statements. "accounts" is a list of account/product chips ({ kind: "account" | "product", id }, the id of an account descriptor or product returned by a tool); "dateRange" bounds by transaction date (YYYY-MM-DD). | |
| metric | Yes | Metric for both groups. | |
| filterA | Yes | Subset of transactions to operate on. All fields are optional and combined with AND logic. | |
| filterB | Yes | Subset of transactions to operate on. All fields are optional and combined with AND logic. |