add_expense
Log a new expense with date, amount, and category. Add optional note and subcategory to capture spending details for accurate tracking.
Instructions
Add a new expense entry to the database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date the expense occurred, in YYYY-MM-DD format. | |
| note | No | Optional free-text note about the expense. | |
| amount | Yes | Amount spent. Must be greater than 0. | |
| category | Yes | Top-level category. Must match a key from the expense://categories resource, e.g. 'food', 'transport'. | |
| subcategory | No | Optional subcategory belonging to the chosen category, e.g. 'groceries' under 'food'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||