Add Expense
add_expenseRecord a new expense with amount and category, plus optional date and note. Log spending to maintain a personal expense tracker.
Instructions
Record a new expense. Date defaults to today (YYYY-MM-DD) if not provided.
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>",
"category": "<category>"
},
"name": "add_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format, defaults to today | |
| amount | Yes | Expense amount, e.g. 12.50 | |
| category | Yes | Category, e.g. food, transport, rent, entertainment | |
| description | No | Optional note about the expense |