Transfer Between Accounts
transfer_between_accountsRecords a funds transfer between two capital accounts, excludes both legs from reports to protect P&L, and reverses the outflow if the inflow leg fails.
Instructions
Record a transfer of funds between two capital accounts. Both legs are marked exclude_from_reports=true so they don't skew P&L. If the inflow leg fails after the outflow succeeds, the outflow is automatically reversed to keep account balances consistent. For full atomicity, a future migration will wrap both legs in a single DB transaction.
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": {
"date": "<date>",
"description": "<description>",
"amount": "<amount>",
"from_account_id": "<from_account_id>",
"to_account_id": "<to_account_id>",
"category_id": "<category_id>"
},
"name": "transfer_between_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Transfer date in YYYY-MM-DD format. | |
| amount | Yes | Amount to transfer (positive number). | |
| category_id | Yes | Category to assign (typically a 'Transfer' income/expense category). | |
| description | Yes | Description of the transfer. | |
| to_account_id | Yes | Account to transfer to. | |
| from_account_id | Yes | Account to transfer from. |