Log expense
log_expenseRecord ONE purchase, bill, or receipt. Negative amount = refund to the same category. NEVER use this for bank-statement rows or any batch of 3+ records: use import_transactions with the whole array instead (one-by-one logging hits the per-turn tool limit).
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": {
"amount": "<amount>"
},
"name": "log_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date as YYYY-MM-DD. Omit for today. | |
| note | No | ||
| items | No | Receipt line items, when logging from a receipt photo. | |
| amount | Yes | Amount spent in the original currency. Negative = refund. | |
| entity | No | Override the account's default scope, e.g. a personal dinner paid with the business card. | |
| account | No | Account name (see get_accounts). Default: Manual. | |
| category | No | Omit only if nothing fits; defaults to 'other'. | |
| currency | No | 3-letter ISO currency code (EUR, USD, UAH, AED, ...). Omit to use the user's base currency. | |
| merchant | No | Store/service name, e.g. 'Silpo', 'Netflix'. |