Skip to main content

Finance

Accounts, transactions, savings, budgets, recurring rules, debts, and planner. finance section.
2 min read

23 tools in four files (finance.ts, finance_recurring.ts, finance_planning.ts, finance_admin.ts), gated on finance.

Reads and transactions — finance.ts#

ToolEndpoint
list_finance_accountsGET .../accounts
get_finance_accountGET .../accounts/:accountId; includes statementDay, isPrimary, maskLast4
get_finance_net_worthGET .../accounts/net-worth
list_transactions / search_transactionstransactions
get_finance_period_summaryGET .../analytics/period-summary
list_budgetsbudgets with progress
list_debtsopen debts; includeSettled: true to include settled
get_finance_debtGET .../debts/:debtId; interest, minimum, payment day, isSettled / settledOn
list_finance_debt_paymentsGET .../debts/:debtId/payments; chronological, with balanceAfterCents

Writes with always():

  • create_transaction, update_transaction
  • add_debt_payment (fromAccountId or the debt's accountId; creates a paid expense)
  • settle_finance_debt — marks the debt settled on settledOn (defaults to today) via PATCH .../debts/:debtId; reopen: true reopens it. Does not create any payment

Categories and recurring — finance_recurring.ts#

list_recurring_rules, set_transaction_category, set_recurring_rule_category (no approval). Categories = tags with domainScope: "finance". Do not use set_entity_tags to categorize.

Planning — finance_planning.ts#

ToolNotes
list_savings_goalsSavings goals
add_savings_contributionapproval; amountCents + dateKey + toAccountId (or the goal's accountId); creates a paid income unless a legacy transactionId
set_budgetapproval; upsert by name
get_finance_trendGET .../analytics/monthly-trend
search_financeGET .../search?q= (snippets; distinct from search_transactions)

list_budgets already includes progress (spent/remaining); there is no duplicate tool.

Dispatcher manage_finance#

ResourceOps
accountscreate, update (isArchived to archive)
budgetsdelete (approval)
recurringRulescreate, update, setActive, skipMonth
debtscreate, update (no hard-delete)
debtGroupslist, create, update
savingsGoalscreate, update (no hard-delete)
plannerScenarioslist, get, create, update, projection
plannerItemscreate, update, delete (approval)

Money and dates#

Every amount is integer cents. Tool dates = YYYY-MM-DD; the handler converts to epoch-ms / RFC3339 according to the endpoint.

Bulk create — finance_bulk.ts#

ToolR/WEndpoint
bulk_create_transactionsW · approvalPOST /finance/.../transactions/bulk-create

Always requires approval (always()). Cap 50, partial success { ids, errors }. The HTTP body uses occurredAtMs like the unit create.