Create expense
create_expenseCreate a planned expense in a box (max 100 per box). Optional matchingGroup for transaction matching; optional iconColor (icon circle color). Name/description ≤100 chars; amount 0…1e6.
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": {
"budgetId": "<budgetId>",
"boxId": "<boxId>",
"name": "<name>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| boxId | Yes | ||
| amount | No | ||
| budgetId | Yes | ||
| currency | No | ||
| frequency | No | How often the bill is paid. biweekly = every 2 weeks; fourWeekly = every 4 weeks; everyNYears = every intervalYears years; once = a single payment on paymentAnchorDate (required), saved for monthly until then. | |
| iconColor | No | ||
| description | No | ||
| paymentCount | No | Number of payments starting at paymentAnchorDate (e.g. 12 for 12x / parcelas, 360 for a 30-year mortgage); the server sets paymentEndDate. Not with paymentEndDate. | |
| intervalYears | No | Years between payments when frequency is everyNYears. | |
| matchingGroup | No | ||
| idempotencyKey | Yes | ||
| paymentEndDate | No | Last payment in yyyy-MM-dd (inclusive, up to 50 years ahead); after it the expense stops counting. Needs paymentAnchorDate. Empty string clears. Prefer paymentCount for instalments. | |
| savingStartDate | No | One-time only (frequency once): the day saving starts, yyyy-MM-dd, on or before paymentAnchorDate. Defaults to today; set it when the user already started saving earlier. | |
| paymentAnchorDate | No | A payment date in yyyy-MM-dd (up to 10 years in the past, or 10 years ahead); the schedule repeats from it. Empty string clears. |