Get credit card spending by category
bg_get_card_categoriesGet Banco General card spend categories with transaction counts and totals for a statement period (or current if no month/year). Uses the bank's own categorization.
Instructions
Banco General's own spend-by-category breakdown for a card statement period (Comida y Bebida, Transporte, Supermercados, etc.), with transaction counts and totals. Omit month/year for the current period. This is the bank's categorization, not a computed one.
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": {
"portalId": "<portalId>"
},
"name": "bg_get_card_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Four-digit year. | |
| month | No | 1-based month. | |
| portalId | Yes | Credit card portalId from bg_list_accounts. |