get_spending_analytics
Retrieve a breakdown of spending by category for a user. Analyze spending patterns over a specified number of days using merchant category codes.
Instructions
Spending breakdown by category (from MCC) for an end user.
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": {
"external_user_ref": "<external_user_ref>"
},
"name": "get_spending_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| external_user_ref | Yes | Your reference for the end user (e.g. a Telegram id). CardOS never requires PII. |