Manage accounts
manage_accountMoney accounts (bank, card, cash, investment), one action per call. create: name, type, currency (entity optional). update: account plus new_name, type, currency or entity (history stays; an entity change affects future rows). set_balance: account, amount, optional currency and date: the REAL balance from the bank app at the end of that date; balances are this snapshot plus later flows. merge: source into target, moving every row, dropping duplicates (same type, currency, amount, date within dedup_window_days; the row with a bank reference wins) and deleting source; typical for a statement-import account and a bank-sync account of the same bank; run dry_run=true first and show the counts. delete: account with its snapshots; delete_transactions=true when it still has rows; delete_all_data erases everything. Transfers between own accounts never count as spending.
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": {
"action": "<action>"
},
"name": "manage_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | set_balance: balance as of the end of this date. Default: today. | |
| name | No | create: short name, e.g. 'Revolut', 'Mono black', 'IBKR'. | |
| type | No | create (required), update: cash | bank | card | investment. | |
| action | Yes | ||
| amount | No | set_balance: the balance shown by the bank or broker. | |
| entity | No | create, update: personal (default) or business, the default scope of the account's rows. | |
| source | No | merge: account to merge FROM (deleted afterwards). | |
| target | No | merge: account to merge INTO (kept). | |
| account | No | update, set_balance, delete: the account's name (see get_accounts). | |
| dry_run | No | merge: preview counts without changing anything. | |
| currency | No | create (required): main currency. update: main currency the balance is shown in. set_balance: default the account's. | |
| new_name | No | update: the new name. | |
| dedup_window_days | No | merge: duplicate match window in days, default 3; 0 = bank-reference duplicates only. | |
| delete_transactions | No | delete: must be true when the account still has transactions. |